public async void Should_Success_EPOClose() { GarmentExternalPurchaseOrderFacade facade = new GarmentExternalPurchaseOrderFacade(ServiceProvider, _dbContext(GetCurrentMethod())); GarmentExternalPurchaseOrder model = await dataUtil(facade, GetCurrentMethod()).GetTestDataAcc(); var Response = facade.EPOClose((int)model.Id, "Unit Test"); Assert.NotEqual(Response, 0); }
public async Task Should_Error_EPOClose() { GarmentExternalPurchaseOrderFacade facade = new GarmentExternalPurchaseOrderFacade(ServiceProvider, _dbContext(GetCurrentMethod())); var model = await dataUtil(facade, GetCurrentMethod()).GetTestDataAcc(); Exception errorInvalidId = Assert.Throws <Exception>(() => facade.EPOClose(0, USERNAME)); Assert.NotNull(errorInvalidId.Message); }