public void When_small_quantity_of_stock_is_refrigerated_then_refrigerated_lorry_is_used(string stockCode) { // Arrange var warehouse = new Warehouse(); // Act warehouse.OrderStock(stockCode, 5); List<DispatchRequest> dispatchRequests = warehouse.ReconcileOrders(); // Assert Assert.AreEqual(true, warehouse.IsLorryRefrigerated(dispatchRequests[0].LorryType)); }
public void When_stock_is_not_refrigerated_for_small_order_Then_non_refrigerated_lorry_is_used(string stockCode) { // Arrange var warehouse = new Warehouse(); // Act warehouse.OrderStock(stockCode, 6); List<DispatchRequest> dispatchRequests = warehouse.ReconcileOrders(); // Assert Assert.AreEqual(false, warehouse.IsLorryRefrigerated(dispatchRequests[0].LorryType)); }
public void When_some_stock_is_refrigerated_and_some_is_not_for_large_order_Then_refrigerated_lorry_is_used(string stockCode) { // Arrange var warehouse = new Warehouse(); // Act warehouse.OrderStock("C", 5); warehouse.OrderStock(stockCode, 50); List<DispatchRequest> dispatchRequests = warehouse.ReconcileOrders(); // Assert Assert.AreEqual(true, warehouse.IsLorryRefrigerated(dispatchRequests[0].LorryType)); }