Write a test; if that doesn't compile, this is red. Make it pass, that is your green. Then refactor the code, not the unit test, to your heart's content, that is your refactor.
So red, green, refactor, that should be your mantra.
I know I have already started the production code in the preceding chapters. If this was a book about TDD, then I would have started with the test. Our aim has been to introduce ASP.NET Core 2.0.
We will go back to our example that we started off with, Puhoi cheese, and I will recap that we are storing and can retrieve a few stores that we have. A store has a description and the number of products that it has, among other data.
Let's say we want to expand on that, and provide some information about ...