Padlock on a wooden door

Adding integration tests for permission-protected API endpoints in ASP.NET Core

This is the forth post in the Authorization in ASP.NET Core series. Part 1: Using a middleware to build a permission-based identity in ASP.NET Core Part 2: Deep dive into policy-based authorization in ASP.NET Core Part 3: Protecting your API endpoints with dynamic policies in ASP.NET Core Part 4: Adding integration tests for permission-protected API endpoints in ASP.NET Core (this post) In the previous post I demonstrated an approach to add authorization to our API endpoints....

May 12, 2021 · 9 min · Joao Grassi
Octocat + GitHub Action + dotnet bot

ASP.NET Core integration tests with docker-compose on GitHub Actions

This is the forth (and last) post in the Integration tests in ASP.NET Core series. Part 1: Limitations of the EF Core in-memory database providers Part 2: Using docker-compose for your ASP.NET + EF Core integration tests Part 3: ASP.NET Core integration tests with docker-compose on Azure Pipelines Part 4: ASP.NET Core integration tests with docker-compose on GitHub Actions (this post) In the previous post of the series we saw how to create and run our tests in a CI fashion using Azure Pipelines....

December 12, 2020 · 5 min · Joao Grassi
View from stairs in black and white

ASP.NET Core integration tests with docker-compose on Azure Pipelines

This is the third post in the Integration tests in ASP.NET Core series. Part 1: Limitations of the EF Core in-memory database providers Part 2: Using docker-compose for your ASP.NET + EF Core integration tests Part 3: ASP.NET Core integration tests with docker-compose on Azure Pipelines (this post) Part 4: ASP.NET Core integration tests with docker-compose on GitHub Actions In the last post of the series we saw how to use SQL Server on Docker as the database for our integration tests during local development....

August 22, 2020 · 7 min · Joao Grassi
View from above of containers in a port

Using docker-compose for your ASP.NET + EF Core integration tests

This is the second post in the Integration tests in ASP.NET Core series. Part 1: Limitations of the EF Core in-memory database providers Part 2: Using docker-compose for your ASP.NET + EF Core integration tests (this post) Part 3: ASP.NET Core integration tests with docker-compose on Azure Pipelines Part 4: ASP.NET Core integration tests with docker-compose on GitHub Actions In this post, we will be looking at how you can run the integration tests of an ASP....

August 13, 2020 · 10 min · Joao Grassi
Road with speed limits printed

Limitations of the EF Core in-memory database providers

This is the first post in the Integration tests in ASP.NET Core series. Part 1: Limitations of the EF Core in-memory database providers (this post) Part 2: Using docker-compose for your ASP.NET + EF Core integration tests Part 3: ASP.NET Core integration tests with docker-compose on Azure Pipelines Part 4: ASP.NET Core integration tests with docker-compose on GitHub Actions In this post we’ll be looking at some of the limitations you may encounter while using the EF Core in-memory database providers for your ASP....

August 9, 2020 · 6 min · Joao Grassi