public void FloorRule_CalculatePrice_WhenFloorGreaterThan5_ShoulldReturnAppropriateValue() { var rule = new FloorRule(); var order = new Models.Order { CustomerId = Guid.NewGuid(), FloorNumber = 6 }; rule.CalculatePrice(order); Assert.AreEqual(1052.95, order.Price); }
public void FloorRule_CalculatePrice_WhenGroundFloor_ShoulldReturn999() { var rule = new FloorRule(); var order = new Models.Order { CustomerId = Guid.NewGuid(), FloorNumber = 0 }; rule.CalculatePrice(order); Assert.AreEqual(999, order.Price); }