public void CheckIfShipmentControllerGetsRandomizedPackages() { ShipmentController shipmentController = new ShipmentController(_baseFixture.MockedShipmentBusiness); GetShipmentPackagesResponse getShipmentPackagesResponse = shipmentController.GetShipmentPackages(); Assert.True(getShipmentPackagesResponse != null && getShipmentPackagesResponse.ShipmentPackages.HasElements()); }
public void CheckIfQueryingANonExistingPackageReturnsNull() { ShipmentController shipmentController = new ShipmentController(_baseFixture.MockedShipmentBusiness); GetShipmentPackagesResponse shipmentPackagesResponse = shipmentController.GetShipmentPackages(); ShipmentPackageDTO shipmentPackage = shipmentPackagesResponse.ShipmentPackages.First(); QuerySpecificPackageResponse querySpecificPackageResponse = shipmentController.QuerySpecificPackage(shipmentPackage.PackageNumber + "asd"); Assert.True(querySpecificPackageResponse != null && querySpecificPackageResponse.ShipmentPackage == null); }