public async Task GivenAProductRepository_WhenGettingProducts() { var cancellationToken = new CancellationToken(); _product = new Fixture().Build <Product>().Without(x => x.Id).Create(); using (var currentContext = new CurrentContext()) { currentContext.CreateTransient(); currentContext.Context.Products.Add(_product); await currentContext.Context.SaveChangesAsync(cancellationToken); _result = await new ProductRepository(currentContext).GetProducts(cancellationToken); } }