Tagged articles
Image from Pexels

Tagged articles - xUnit

Found 2 articles tagged with xUnit

Mocking view mapped DbSets with XUnit in EF Core
Writing unit tests for view bounded entities in EF Core
 
0
Using in-memory DbContext is a great way to mock your actual DbContext in unit tests. You basically initialize the instance of your DbContext and seed some random data before you assert the result of your repository method. Now the problem occurs if you are mapping database view to an entity...read more
Unit testing repositories in ASP.NET Core with xUnit and Moq
Mocking UserManager RoleManager and DbContext in unit tests in .NET Core
0
Unit testing is an important part for maintaining code quality and what is the most important thing, avoiding bugs in production. This is one of the reasons why unit tests and high code coverage is desired as a part of the project and as a part of the build process since you can detect potential bugs and issues during the build process when unit tests are executed...read more

.NET

read more

JavaScript

read more

SQL/T-SQL

read more

Umbraco CMS

read more