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>()); }
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>()); }
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>()); }