Exemplo n.º 1
0
        public async Task ShouldCreateAgency(string databaseProvider, string connectionString)
        {
            using var context = new AgencyContext()
                                .WithDatabaseProvider(databaseProvider)
                                .WithConnectionString(connectionString);

            // Act
            await context.InitializeAsync();

            var result = await context.Client.GetAsync("/");

            Assert.True(result.IsSuccessStatusCode);
        }