public void InvalidLocationArrivalTest() { var _layover = new Layover(0, "05/01/2020", "05/01/2020", 250, 1, 0); Assert.Throws <InvalidAttributeException>(() => LayoverValidator.Validate(_layover)); }
public void EmptyDepartureTest() { var _layover = new Layover(0, "05/01/2020", null, 250, 1, 2); Assert.Throws <InvalidAttributeException>(() => LayoverValidator.Validate(_layover)); }