public When_ProviderRepository_GetProvidersWithFundingAsync_Is_Called() { var logger = Substitute.For <ILogger <ProviderRepository> >(); using var dbContext = InMemoryDbContext.Create(); dbContext.Add(new ValidProviderWithFundingBuilder().Build()); dbContext.SaveChanges(); var repository = new ProviderRepository(logger, dbContext); _result = repository.GetProvidersWithFundingAsync() .GetAwaiter().GetResult(); }