Dev Principles

Fresh Thinking

Fresh Quality Core

December 12, 2019

Today, Fresh Consulting is announcing the Fresh Quality Core project.

Fresh Quality Core assists developers with automated testing of classes that use Dependency Injection.

It sets up a service provider environment with commonly used classes, and facilitates the instantiation of classes using Dependency Injection in a MS Test environment.  The library provides flexibility in terms of what services will be provided, as well as a mechanism for overriding the dependency injection for individual test cases.

A proof of concept for Fresh Quality Core was used to provide complete code coverage (level 3 coverage as described in Unit/Automated Testing) of controllers that inherited from the ApiController class in a Web Service that was written in .NET Core 2.1.  Based on the experiences with the proof of concept, a new version was written from scratch to allow for injection for any class so long as the services were properly defined.

We recommend using automated testing in your projects, as not only will it improve the overall reliability, it will ease the process of improving the code base.  Long term, this will yield faster improvements for less effort.

The Fresh Quality Core Project can be downloaded here.

Download our free white paper: Your Guide to Development Testing to learn which tests will be the most efficient for your next project.

Fresh Consulting's White Paper, Your Guide to Development Testing

Sean McKay

Sr. Software Engineer



Your Guide to Development Testing


You might also like...



What is Strategy, Now? Networked Strategy.

Networked Strategy, an approach based in participatory value creation, allows us to move beyond the “single source” approach to strategy. Fresh’s Strategy & Innovation practice embraces this paradigm through the Fresh Algorithm for Strategic Transformation to help its partners achieve the greatest impact possible in our innovation work together. A Very Static History For years people … Continued

...continue reading



BalanceTech: A Resource for Finding Balance in a Tech-Reliant World

As technology layers deeper and deeper into the fabric of our everyday life, its impacts on our health must be considered to ensure our long-term well-being. At Fresh, we believe that technology can be a means of enhancing and expanding on our innate human qualities of imagination, innovation, social connection, and productivity. By finding the … Continued

...continue reading



Using Containers to Automate Your Development Environment

Beginning to work on an existing codebase can be daunting, but it can be even more time-consuming if the team hasn’t taken time to automate the creation of their development environment. When you start working on an existing project, you’ll likely follow similar steps to the ones below to run the code on your machine: … Continued

...continue reading