public async void Should_Success_GetExternalPurchaseOrder() { UnitPaymentOrderFacade facade = new UnitPaymentOrderFacade(_dbContext(GetCurrentMethod())); var model = _dataUtil(facade, GetCurrentMethod()).GetNewData(); var Response = await facade.Create(model, USERNAME, true); Assert.NotEqual(Response, 0); foreach (var item in model.Items) { foreach (var detail in item.Details) { var externalPurchaseOrder = facade.GetExternalPurchaseOrder(detail.EPONo); Assert.NotNull(externalPurchaseOrder); } } }