public async Task Should_Success_Get_Data() { var dbContext = _dbContext(GetCurrentMethod()); UnitPaymentQuantityCorrectionNoteFacade facade = new UnitPaymentQuantityCorrectionNoteFacade(GetServiceProvider(GetCurrentMethod()).Object, dbContext); await _dataUtil(facade, dbContext, GetCurrentMethod()).GetTestData(); var Response = facade.Read(); Assert.NotEmpty(Response.Item1); }
public async void Should_Success_Get_Data() { var serviceProvider = new Mock <IServiceProvider>(); UnitPaymentQuantityCorrectionNoteFacade facade = new UnitPaymentQuantityCorrectionNoteFacade(serviceProvider.Object, _dbContext(GetCurrentMethod())); await _dataUtil(facade, GetCurrentMethod()).GetTestData(); var Response = facade.Read(); Assert.NotEqual(Response.Item1.Count, 0); }