public async Task Should_Error_Get_Null_Data_UnitReceiptNote() { var dbContext = _dbContext(GetCurrentMethod()); UnitPaymentQuantityCorrectionNoteFacade facade = new UnitPaymentQuantityCorrectionNoteFacade(GetServiceProvider(GetCurrentMethod()).Object, _dbContext(GetCurrentMethod())); var model = await _dataUtil(facade, dbContext, GetCurrentMethod()).GetTestData(); var Response = facade.ReadByURNNo((string)model.UPCNo); Assert.Null(Response); }
public async void Should_Success_Get_Null_Data_UnitReceiptNote() { var serviceProvider = new Mock <IServiceProvider>(); UnitPaymentQuantityCorrectionNoteFacade facade = new UnitPaymentQuantityCorrectionNoteFacade(serviceProvider.Object, _dbContext(GetCurrentMethod())); var model = await _dataUtil(facade, GetCurrentMethod()).GetTestDataUrn(); var Response = facade.ReadByURNNo((string)model.URNNo); Assert.NotNull(Response); }