public void TestItFailsOnInvalidControllers(string first, string second, string third, int numErrors)
        {
            sectorElements.Add(
                SectorFactory.Make(
                    guests: new List <SectorGuest>
            {
                SectorGuestFactory.Make(first),
                SectorGuestFactory.Make(third),
            }
                    )
                );
            sectorElements.Add(
                SectorFactory.Make(
                    guests: new List <SectorGuest>
            {
                SectorGuestFactory.Make(second),
                SectorGuestFactory.Make(third),
            }
                    )
                );

            AssertValidationErrors(numErrors);
        }
        public void TestItFailsOnInvalid(string first, string second, string third, int timesCalled)
        {
            sectorElements.Add(
                SectorFactory.Make(
                    guests: new List <SectorGuest>
            {
                SectorGuestFactory.Make(firstAirport: first, secondAirport: second),
                SectorGuestFactory.Make(firstAirport: third, secondAirport: "*"),
            }
                    )
                );
            sectorElements.Add(
                SectorFactory.Make(
                    guests: new List <SectorGuest>
            {
                SectorGuestFactory.Make(firstAirport: third, secondAirport: first),
                SectorGuestFactory.Make(firstAirport: "*", secondAirport: "*"),
            }
                    )
                );

            AssertValidationErrors(timesCalled);
        }
        public void TestItPassesOnValidControllers(string first, string second, string third)
        {
            sectorElements.Add(
                SectorFactory.Make(
                    guests: new List <SectorGuest>
            {
                SectorGuestFactory.Make(first),
                SectorGuestFactory.Make(third),
            }
                    )
                );
            sectorElements.Add(
                SectorFactory.Make(
                    guests: new List <SectorGuest>
            {
                SectorGuestFactory.Make(second),
                SectorGuestFactory.Make(third),
            }
                    )
                );

            AssertNoValidationErrors();
        }
        public void TestItPassesOnAllValid(string first, string second, string third)
        {
            sectorElements.Add(
                SectorFactory.Make(
                    guests: new List <SectorGuest>
            {
                SectorGuestFactory.Make(firstAirport: first, secondAirport: second),
                SectorGuestFactory.Make(firstAirport: third, secondAirport: "*"),
            }
                    )
                );
            sectorElements.Add(
                SectorFactory.Make(
                    guests: new List <SectorGuest>
            {
                SectorGuestFactory.Make(firstAirport: third, secondAirport: first),
                SectorGuestFactory.Make(firstAirport: "*", secondAirport: "*"),
            }
                    )
                );

            AssertNoValidationErrors();
        }