Looking deep inside OData Controllers

ASP.NET 4.5 has three different class which we can inherits to implements the controllers: Controller, ApiController and ODataController. In the latest applications that I implemented, because they were SPA, I used rarely the classic Controller (know as MVC controllers) and I developed a huge number of ApiController and ODataController. The first ones are used to … Continue reading Looking deep inside OData Controllers

Build and run an ASP.NET Core application with Docker

The topic of this post is a new technology that widespread in the world of the virtualization, that is Docker. It is based on the concept of the containers, every application that runs on docker is a container, that is a lightweight executable package that contains all the dependencies that the application needed to run. … Continue reading Build and run an ASP.NET Core application with Docker

Managing OAuth 2 authentication with Swagger

In this post I want to talk about a product that could help us to produce documentation about the Web API services implemented in our application. Swagger is a popular framework that once installed in an ASP.NET application is able to produce documentation about all the Web API implemented in the project. Furthermore it give … Continue reading Managing OAuth 2 authentication with Swagger

Continuous integration with Atlassian Bamboo

The continuous integration is a frequent theme in the application development, expecially in the projects with many developers involved that work on differents components of the application. Just because the developers works on different features, a process that integrate the new code frequently in project and verify that all the dependencies of that are working … Continue reading Continuous integration with Atlassian Bamboo

Mocking Entity Framework DbContext with Moq

When we have to test methods that involves Entity Framework, a typical choice that we have to face is use integration tests, with an effective database, or unit tests. If we choice the first option, with a database like SQL LocalDB, we'll have performance problems because the cost of the database creation and the data … Continue reading Mocking Entity Framework DbContext with Moq