O'Reilly logo

Mastering ASP.NET Web API by Malendra Hurbuns, Mithun Pattankar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Red-Green-Refactor

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required