public async void GetsAllTenants() { var options = TestUtil.GetMemDbOptions("GetsAllTenants"); var count = 0; using (var db = new AptMgmtDbContext(options)) { var repo = (ITenant) new TenantRepository(db); var tenant = TestUtil.NewTenant(db); var tenants = await repo.GetTenants(); count = tenants.Count(); } using (var db = new AptMgmtDbContext(options)) { ITenant repo = (ITenant) new TenantRepository(db); var getTenants = await repo.GetTenants(); var tenantCount = getTenants.Count(); Assert.Equal(tenantCount, count); } }