@manhng

Welcome to my blog!

Unit Test in C#

November 10, 2019 22:33

ASP.Net Core Web API – Integration Testing With XUnit (edit)

https://github.com/mmacneil/ApiIntegrationTestSamples

https://github.com/Elfocrash/Youtube.AspNetCoreTutorial

Simple way to faked an authenticated user for integration test with ASP.Net Core framework

https://github.com/DOMZE/fake-authentication-jwtbearer

https://github.com/GestionSystemesTelecom/fake-authentication-jwtbearer

Others

https://www.hanselman.com/blog/EasierFunctionalAndIntegrationTestingOfASPNETCoreApplications.aspx

 

https://gunnarpeipman.com/aspnet-core-identity-integration-tests/

https://dotnetcorecentral.com/blog/asp-net-core-web-api-integration-testing-with-xunit/

ASP.NET Core Web API in .NET Core 2.1

Integration Test

Step 1) Create xUnit Test Project (.NET Core)

Step 2) Add reference to Project need to execute Integration Test

Step 3) NuGet: Microsoft.AspNetCore.TestHost version 2.1.0

+ TestServer

Step 4) NuGet: Microsoft.AspNetCore.Razor.Runtime version=2.1.1.0

Step 5) NuGet: FluentAssertions

+ FluentAssertions

https://koukia.ca/integration-testing-in-asp-net-core-2-0-51d14ede3968

https://andrewlock.net/introduction-to-integration-testing-with-xunit-and-testserver-in-asp-net-core/

https://www.meziantou.net/testing-an-asp-net-core-application-using-testserver.htm

http://softwaretestingfundamentals.com/integration-testing/

Rest API Test using RestSharp

https://www.toolsqa.com/restsharp/rest-api-test-using-restsharp/

A Few Great Ways to Consume RESTful API in C#

https://code-maze.com/different-ways-consume-restful-api-csharp/

https://github.com/CodeMazeBlog/ConsumeRestfulApisExamples

Unit Testing and Integration Testing in WebAPI using NUnit and Moq framework in RESTful Service

https://www.c-sharpcorner.com/article/restful-day-sharp8-unit-testing-and-integration-testing-in-weba/

NSwag is an open source toolbox that, among other things, is able to generate C# and TypeScript client classes to consume Web APIs.

https://medium.com/@nuno.caneco/dont-write-your-web-api-client-code-6f1dd36263b5

Categories

Recent posts