INNER CODE UNIT · C#
IntegrationFixture
ttu/dotnet-fake-json-server · FakeServer.Test/IntegrationTestCollection.cs:11
public class IntegrationFixture : ICollectionFixture<WebApplicationFactory<Startup>>, IDisposable
{
private WebApplicationFactory<Startup> _factory;
public HttpClient Client { get; private set; }
private string _newFilePath;
public void StartServer(string authenticationType = "")
{
var path = Path.GetDirectoryName(typeof(IntegrationFixture).GetTypeInfo().Assembly.Location);
var fileName = Guid.NewGuid().ToString();
_newFilePath = UTHelpers.Up(fileName);
var mainConfiguration = new Dictionary<string, string>
{
{ "currentPath", path },
{ "file", _newFilePath },
{ "DataStore:IdField", "id" },