Пример #1
0
 public void Setup()
 {
     PathSelectorUnderTest = new SimplePathSelector(
         typeof(DummyClass1),
         typeof(DummyClass2),
         typeof(DummyClass3),
         typeof(NoPathAvailableDummy),
         typeof(InvalidPathDummy));
 }
Пример #2
0
            public void Setup()
            {
                PathSelectorUnderTest = new SimplePathSelector(
                    typeof(DummyClass1),
                    typeof(DummyClass2),
                    typeof(DummyClass3),
                    typeof(NoPathAvailableDummy),
                    typeof(InvalidPathDummy));

                PathSelectorUnderTest.AddProvider(new NoPathAvailableDummy());
                PathSelectorUnderTest.AddProvider(new DummyClass3());
                PathSelectorUnderTest.AddProvider(new DummyClass2());
                PathSelectorUnderTest.AddProvider(new DummyClass1());
            }