Пример #1
0
        public void Should_Register_Tail_Service_In_Container()
        {
            // Given, When
            var scanner      = new Mock <ITailProviderScannerService>().Object;
            var bootstrapper = new TestBootstrapper(scanner);

            // Then
            Assert.True(bootstrapper.HasBinding <ITailListenerService>());
        }
Пример #2
0
        public void Should_Register_Output_View_Model_In_Container()
        {
            // Given, When
            var scanner      = new Mock <ITailProviderScannerService>().Object;
            var bootstrapper = new TestBootstrapper(scanner);

            // Then
            Assert.True(bootstrapper.HasBinding <StreamViewModel>());
        }
Пример #3
0
        public void Should_Register_Found_Providers_In_Container()
        {
            // Given
            var scanner = new Mock <ITailProviderScannerService>();
            IEnumerable <Assembly> assemblies;
            var provider  = new FakeProvider();
            var providers = new List <Type> {
                provider.GetType()
            };

            scanner.Setup(x => x.Scan(out assemblies)).Returns(() => providers);

            // When
            var bootstrapper = new TestBootstrapper(scanner.Object);

            // Then
            Assert.True(bootstrapper.HasBinding <ITailProvider>());
        }