August 2017
Intermediate to advanced
330 pages
7h 26m
English
Create a new project; this will be the class library for .NET Core.
I named this Puhoi.Models.xUnit.Tests. I will be writing the same test that we created earlier on in the chapter for the models, but as a xUnit test, and then we'll look at the differences:

I copied GreenProductModel into the project; you can do this, or add the file as a shortcut.
To be able to use the models project and common library, which are .NET assemblies, I had to recreate them as .NET Core assemblies. You will find copies of these in the repository.
You should now see this in your solution explorer:
So, add a reference to Puhoi.Models.Core.
Now ...
Read now
Unlock full access