Using Moq to Create Fluent Test Classes in ASP.NET 5.0
Using Moq, we'll create a set of "fluent" mocked classes, which will clean up our tests by allowing us to "chain" methods being mocked.
Using Moq, we'll create a set of "fluent" mocked classes, which will clean up our tests by allowing us to "chain" methods being mocked.
Let's see how to unit test ASP.NET 5.0 applications using XUnit and Moq!
You can now subscribe to Exception Not Found to get early access to posts, better emails, no ads, and more!
MSBuild started it. Where it ended was with an idea that I am constantly being reminded of: nothing is ever unchangeable.
More than four years ago, I published a post called Dapper vs Entity Framework vs ADO.NET Performance Benchmarking [https://exceptionnotfound.net/dapper-vs-entity-framework-vs-ado-net-performance-benchmarking/]. In that post, I determined that Dapper [https://github.com/StackExchange/Dapper] performed markedly better for queries against a SQL Server database than Entity Framework did, and