protected WorkflowsComponentTestBase(ElsaHostApplicationFactory hostApplicationFactory)
 {
     HostApplicationFactory = hostApplicationFactory;
     Fixture    = new Fixture().Customize(new NodaTimeCustomization());
     TempFolder = new TemporaryFolder();
     hostApplicationFactory.SetDbConnectionString($@"Data Source={TempFolder.Folder}-elsa.db;Cache=Shared");
 }
Exemplo n.º 2
0
 protected TestBase(ElsaHostApplicationFactory hostApplicationFactory) : base(hostApplicationFactory)
 {
     HttpClient = hostApplicationFactory.CreateClient();
 }
Exemplo n.º 3
0
        protected ElsaClientTestBase(ElsaHostApplicationFactory hostApplicationFactory) : base(hostApplicationFactory)
        {
            var services = new ServiceCollection().AddElsaClient(options => options.ServerUrl = HttpClient.BaseAddress !, () => HttpClient).BuildServiceProvider();

            ElsaClient = services.GetRequiredService <IElsaClient>();
        }