Пример #1
0
        public void FilterTocs(TocFilter tocFilter, int expected)
        {
            var source = ComesFromSource;

            ((CifSchedule)source[0].Service.Details).Operator = new Toc("GR");
            ((CifSchedule)source[1].Service.Details).Operator = new Toc("VT");
            ((CifSchedule)source[2].Service.Details).Operator = new Toc("VT");
            ((CifSchedule)source[3].Service.Details).Operator = new Toc("SW");

            var filter = Factory.ProvidedByToc(tocFilter, Factory.NoFilter);

            var results = filter(source).ToArray();

            Assert.Equal(expected, results.Length);
        }