예제 #1
0
        public void TestItFailsOnInvalid(string first, string second, string third, int timesCalled)
        {
            sectorElements.Add(
                SectorFactory.Make(
                    departureAirports: new List <SectorDepartureAirports>
            {
                SectorDepartureAirportsFactory.Make(new List <string> {
                    first, second
                })
            }
                    )
                );
            sectorElements.Add(
                SectorFactory.Make(
                    departureAirports: new List <SectorDepartureAirports>
            {
                SectorDepartureAirportsFactory.Make(new List <string> {
                    second, third
                })
            }
                    )
                );

            AssertValidationErrors(timesCalled);
        }
예제 #2
0
        public void TestItPassesOnAllValid(string first, string second, string third)
        {
            sectorElements.Add(
                SectorFactory.Make(
                    departureAirports: new List <SectorDepartureAirports>
            {
                SectorDepartureAirportsFactory.Make(new List <string> {
                    first, second
                })
            }
                    )
                );
            sectorElements.Add(
                SectorFactory.Make(
                    departureAirports: new List <SectorDepartureAirports>
            {
                SectorDepartureAirportsFactory.Make(new List <string> {
                    second, third
                })
            }
                    )
                );

            AssertNoValidationErrors();
        }