no dogma blog
no dogma blog
Blog Posts
Podcast
Web API Lambda Course
Polly Course
Photos
Contact
Support this Site
About
RSS
Light
Dark
Automatic
WebApi
Entity Framework Core 2 Unit Testing in .NET Core 2
Full source code available here. Unit testing Entity Framework used to be quite a chore, but over the past few years it has become significantly easier. In this post I’m going to show you how to use the InMemory database with named instances.
Sep 25, 2017
#
dotNet Core 2
,
Entity Framework Core
,
Unit Test
,
WebApi
Unit Testing .NET Core 2 Web Api
Unit testing Web API controllers in .NET Core 2 is very easy. Here is a simple example of how to test GET and POST methods.
Sep 9, 2017
#
dotNet Core 2
,
Unit Test
,
WebApi
Multiple Get Methods with the Action Method Selector Attribute in .NET Core
In .NET Core Web Api it is not possible for the routing mechanism to distinguish between two action methods with different query string parameters. But with the help of an ActionMethodSelectorAttribute you can tell the methods apart.
Aug 15, 2017
#
dotNet Core
,
AspNet
,
Routing
,
WebApi
,
ActionMethodSelectorAttribute
Web Api Routing in .NET Core
Full source code available here. Routing in .NET Core Web Api (1.1 and 2) is a little different than in earlier versions. I’ve written about this a few times, you can find those posts here.
Jul 15, 2017
#
dotNet Core
,
AspNet
,
Routing
,
WebApi
Fluent Validation in ASP.NET Core
Full source code available here. I have written about Fluent Validation a couple of times. There is a new library available for .Net Core. How to return to validation messages back to the caller is not immediately obvious.
Jun 7, 2017
#
dotNet Core
,
AspNet
,
Fluent Validation
,
WebApi
Returning default values from a failed web request with Polly Fallbacks
Full source code available here. Want to learn more about Polly? Check out my Pluralsight course on it. In previous posts on Polly I showed how to use a simple retry, and a retry with a delegate that is called before the request is retried.
May 25, 2017
#
AspNet
,
Polly
,
Web Service
,
WebApi
,
WebApi2
Re-authorization and onRetry with Polly
Full source code available here. Want to learn more about Polly? Check out my Pluralsight course on it. In a previous post I showed how to use Polly to make a simple call, retrying in the event of failure.
May 8, 2017
#
AspNet
,
Polly
,
Web Service
,
WebApi
,
WebApi2
Letting a request fail with Polly
Want to learn more about Polly? Check out my Pluralsight course on it. Polly is fantastic for transparently retrying a request but there is always a point at which you must give up.
Apr 19, 2017
#
AspNet
,
Polly
,
Web Service
,
WebApi
Reusing Polly Policies with Dependency Injection
Download full source code. Want to learn more about Polly? Check out my Pluralsight course on it. In my previous post “A simple Polly example with WebApi 2” I showed how to make a request to an unreliable endpoint protected by a Polly retry policy.
Mar 30, 2017
#
AspNet
,
ninject
,
Polly
,
WebApi
,
WebApi2
A simple Polly example with WebApi 2
Download full source code. Want to learn more about Polly? Check out my Pluralsight course on it. If you are calling APIs and you haven’t heard about The Polly Project, you should check it out.
Mar 16, 2017
#
AspNet
,
Polly
,
WebApi
«
»
Cite
×