Beispiel #1
0
        public async Task Setup()
        {
            using var context = new CustomersDbContext(dbContextOptions);
            await context.AddRangeAsync(customers);

            await context.SaveChangesAsync();

            customersController = new CustomersController(new CustomersDbContext(dbContextOptions));
        }