search

In this post, I will share with you a solution to a problem that I see often when developing .NET applications that use both Fluent Validation and Entity Framework (Core). I'll first set the scene: Show the EF Core Entity + Configuration + Fluent Validation we'll be working on. Then, I'll show the actual problem that emerges with this approach. In the end, I'll present the solution I came up with.

Bharat Dwarkani shared on Jan 18, 2020
image
blog.joaograssi.com
bookmarks
share
favorite_border0 visibility8
favorite_border0 visibility8 share bookmarks

In ASP.NET Core generally. While working with security, I'm always interested in doing end-to-end testing: Starting up the application and seeing what happens when I try to navigate to a page.

Bharat Dwarkani shared on Nov 24, 2019
image
visualstudiomagazine.com
bookmarks
share
favorite_border0 visibility41
favorite_border0 visibility41 share bookmarks

Imagine you are using the options pattern in .NET Core to set up some configuration in your application, and you need to test it. Through this example, you will learn how to test the options you have configured.

Bharat Dwarkani shared on Nov 24, 2019
image
dev.to
bookmarks
share
favorite_border0 visibility53
favorite_border0 visibility53 share bookmarks

we’ll use xUnit and write some unit tests for the ProxiedApiRouteEndpointLookup we’ve played around with in the last episode. We’re not going into much complexity, if for nothing else, because the class we’ll be testing is rather simple. In future episodes, with more complex code to test, we’ll revisit the topic and look at some other testing possibilities/needs (e.g. mocking).

Bharat Dwarkani shared on Nov 02, 2019
image
blog.codingmilitia.com
bookmarks
share
favorite_border0 visibility10
favorite_border0 visibility10 share bookmarks

MyTested.AspNetCore.Mvc is a strongly-typed unit testing library providing an easy fluent interface to test the ASP.NET Core framework, perfectly suitable for both MVC and API scenarios. It is testing framework agnostic so that you can combine it with a test runner of your choice (e.g. xUnit, NUnit, etc.).

Bharat Dwarkani shared on Nov 02, 2019
image
github.com
bookmarks
share
favorite_border0 visibility4
favorite_border0 visibility4 share bookmarks

This isa series of article from the series to present different topics related to unit testing with xUnit in ASP.NET Core MVC.

Bharat Dwarkani shared on Sep 22, 2019
image
code-maze.com
bookmarks
share
favorite_border0 visibility11
favorite_border0 visibility11 share bookmarks
add