Beispiel #1
0
        public void TestItFailsOnInvalid(string first, string second, string third, int timesCalled)
        {
            sectorElements.Add(
                SectorFactory.Make(
                    active: new List <SectorActive>
            {
                SectorActiveFactory.Make(first),
                SectorActiveFactory.Make(third)
            }
                    )
                );
            sectorElements.Add(
                SectorFactory.Make(
                    active: new List <SectorActive>
            {
                SectorActiveFactory.Make(second),
                SectorActiveFactory.Make(third)
            }
                    )
                );

            AssertValidationErrors(timesCalled);
        }
Beispiel #2
0
        public void TestItPassesOnAllValid(string first, string second, string third)
        {
            sectorElements.Add(
                SectorFactory.Make(
                    active: new List <SectorActive>
            {
                SectorActiveFactory.Make(first),
                SectorActiveFactory.Make(third)
            }
                    )
                );
            sectorElements.Add(
                SectorFactory.Make(
                    active: new List <SectorActive>
            {
                SectorActiveFactory.Make(second),
                SectorActiveFactory.Make(third)
            }
                    )
                );

            AssertNoValidationErrors();
        }
Beispiel #3
0
        public void TestItFailsOnInvalid(string firstAirport, string firstRunway, string secondAirport, string secondRunway, int failTimes)
        {
            sectorElements.Add(
                SectorFactory.Make(
                    active: new List <SectorActive>
            {
                SectorActiveFactory.Make(firstAirport, firstRunway),
                SectorActiveFactory.Make(secondAirport, secondRunway),
            }
                    )
                );

            sectorElements.Add(
                SectorFactory.Make(
                    active: new List <SectorActive>
            {
                SectorActiveFactory.Make(firstAirport, firstRunway),
                SectorActiveFactory.Make(secondAirport, secondRunway),
            }
                    )
                );

            AssertValidationErrors(failTimes);
        }
Beispiel #4
0
        public void TestItPassesOnAllValid(string firstAirport, string firstRunway, string secondAirport, string secondRunway)
        {
            sectorElements.Add(
                SectorFactory.Make(
                    active: new List <SectorActive>
            {
                SectorActiveFactory.Make(firstAirport, firstRunway),
                SectorActiveFactory.Make(secondAirport, secondRunway),
            }
                    )
                );

            sectorElements.Add(
                SectorFactory.Make(
                    active: new List <SectorActive>
            {
                SectorActiveFactory.Make(firstAirport, firstRunway),
                SectorActiveFactory.Make(secondAirport, secondRunway),
            }
                    )
                );

            AssertNoValidationErrors();
        }