Exemplo n.º 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);
        }
Exemplo n.º 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();
        }
Exemplo n.º 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);
        }
Exemplo n.º 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();
        }