Example #1
0
        public void GetInstanceOf_Returns_Null_For_Unsupported_Types()
        {
            //Arrange
            var provider = new LogicProvider();

            //Act
            var result = provider.GetInstanceOf <DummyLogic>();

            //Assert
            Assert.Null(result);
        }
Example #2
0
        public void GetInstanceOf_Returns_Null_For_Unsupported_Types()
        {
            //Arrange
            var provider = new LogicProvider();

            //Act
            var result = provider.GetInstanceOf<DummyLogic>();

            //Assert
            Assert.Null(result);
        }
Example #3
0
        public void GetInstanceOf_Returns_Instance_Of_ModelFactory_When_T_Is_IModelFactory()
        {
            //Arrange
            var provider = new LogicProvider();

            //Act
            var result = provider.GetInstanceOf <IModelFactory>();

            //Assert
            Assert.NotNull(result);
            Assert.IsType <ModelFactory>(result);
        }
Example #4
0
        public void GetInstanceOf_Returns_Instance_Of_ParsedLinksProcessor_When_T_Is_ILinksProcessor()
        {
            //Arrange
            var provider = new LogicProvider();

            //Act
            var result = provider.GetInstanceOf <ILinksProcessor>();

            //Assert
            Assert.NotNull(result);
            Assert.IsType <ParsedLinksProcessor>(result);
        }
Example #5
0
        public void GetInstanceOf_Returns_Instance_Of_MyCrawledPageProcessor_When_T_Is_ICrawledPageProcessor()
        {
            //Arrange
            var provider = new LogicProvider();

            //Act
            var result = provider.GetInstanceOf <ICrawledPageProcessor>();

            //Assert
            Assert.NotNull(result);
            Assert.IsType <MyCrawledPageProcessor>(result);
        }
Example #6
0
        public void GetInstanceOf_Returns_Instance_Of_ModelFactory_When_T_Is_IModelFactory()
        {
            //Arrange
            var provider = new LogicProvider();

            //Act
            var result = provider.GetInstanceOf<IModelFactory>();

            //Assert
            Assert.NotNull(result);
            Assert.IsType<ModelFactory>(result);
        }
Example #7
0
        public void GetInstanceOf_Returns_Instance_Of_ParsedLinksProcessor_When_T_Is_ILinksProcessor()
        {
            //Arrange
            var provider = new LogicProvider();

            //Act
            var result = provider.GetInstanceOf<ILinksProcessor>();

            //Assert
            Assert.NotNull(result);
            Assert.IsType<ParsedLinksProcessor>(result);
        }
Example #8
0
        public void GetInstanceOf_Returns_Instance_Of_MyCrawledPageProcessor_When_T_Is_ICrawledPageProcessor()
        {
            //Arrange
            var provider = new LogicProvider();

            //Act
            var result = provider.GetInstanceOf<ICrawledPageProcessor>();

            //Assert
            Assert.NotNull(result);
            Assert.IsType<MyCrawledPageProcessor>(result);
        }