Feature/migrate to minimal api (#662)
* migrate from classic controller to minimal api * fix all PublicApi integration test * update all nuget package add forget project * fix pay now * Adapt readme use in memory database * undo AuthenticateEndpoint to use EndpointBaseAsync * Update README.md Co-authored-by: Steve Smith <steve@kentsmiths.com> Co-authored-by: Steve Smith <steve@kentsmiths.com>
This commit is contained in:
27
tests/PublicApiIntegrationTests/ProgramTest.cs
Normal file
27
tests/PublicApiIntegrationTests/ProgramTest.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using Microsoft.AspNetCore.Mvc.Testing;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using System.Net.Http;
|
||||
|
||||
namespace PublicApiIntegrationTests
|
||||
{
|
||||
[TestClass]
|
||||
public class ProgramTest
|
||||
{
|
||||
private static WebApplicationFactory<Program> _application;
|
||||
|
||||
public static HttpClient NewClient
|
||||
{
|
||||
get
|
||||
{
|
||||
return _application.CreateClient();
|
||||
}
|
||||
}
|
||||
|
||||
[AssemblyInitialize]
|
||||
public static void AssemblyInitialize(TestContext _)
|
||||
{
|
||||
_application = new WebApplicationFactory<Program>();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user