public void TestItFailsOnInvalid(string first, string second, string third, int timesCalled) { sectorElements.Add( SectorFactory.Make( arrivalAirports: new List <SectorArrivalAirports> { SectorArrivalAirportsFactory.Make(new List <string> { first, second }) } ) ); sectorElements.Add( SectorFactory.Make( arrivalAirports: new List <SectorArrivalAirports> { SectorArrivalAirportsFactory.Make(new List <string> { second, third }) } ) ); AssertValidationErrors(timesCalled); }
public void TestItPassesOnAllValid(string first, string second, string third) { sectorElements.Add( SectorFactory.Make( arrivalAirports: new List <SectorArrivalAirports> { SectorArrivalAirportsFactory.Make(new List <string> { first, second }) } ) ); sectorElements.Add( SectorFactory.Make( arrivalAirports: new List <SectorArrivalAirports> { SectorArrivalAirportsFactory.Make(new List <string> { second, third }) } ) ); AssertNoValidationErrors(); }