예제 #1
0
        public void CreateProvider_Arbitrary_OfArbitraryType()
        {
            //arrange
            var config = new OrchestratorConfig {
                InputDataKind = KindOfTextData.Arbitrary, ArbitraryInputDefs = new string[] { "dummy dummy" }
            };

            //act
            var sut = IntakeProvider.CreateProvider(config, null, null, null);

            //assert
            sut.Should().BeOfType <ArbitraryIntakeProvider>();
        }
예제 #2
0
        public void CreateProvider_Flat_OfFlatType()
        {
            //arrange
            var config = new OrchestratorConfig {
                InputDataKind = KindOfTextData.Flat
            };

            //act
            var sut = IntakeProvider.CreateProvider(config, null, null, null);

            //assert
            sut.Should().BeOfType <FlatIntakeProvider>();
        }
예제 #3
0
        public void CreateProvider_Delimited_OfDelimitedType()
        {
            //arrange
            var config = new OrchestratorConfig {
                InputDataKind = KindOfTextData.Delimited
            };

            //act
            var sut = IntakeProvider.CreateProvider(config, null, null, null);

            //assert
            sut.Should().BeOfType <DelimitedIntakeProvider>();
        }
예제 #4
0
        public void CreateProvider_Keyword_OfKwType()
        {
            //arrange
            var config = new OrchestratorConfig {
                InputDataKind = KindOfTextData.Keyword
            };

            //act
            var sut = IntakeProvider.CreateProvider(config, null, null, null);

            //assert
            sut.Should().BeOfType <KwIntakeProvider>();
        }
예제 #5
0
        public void CreateProvider_Ultimate_TBD()
        {
            //arrange
            var config = new OrchestratorConfig {
                InputDataKind = KindOfTextData.Ultimate
            };

            //act
            var sut = IntakeProvider.CreateProvider(config, null, null, null);

            //assert
            sut.Should().BeNull(); // future use
        }
예제 #6
0
        public void CreateProvider_UnboudJSON_OfXrecordType()
        {
            //arrange
            var config = new OrchestratorConfig {
                InputDataKind = KindOfTextData.UnboundJSON
            };

            //act
            var sut = IntakeProvider.CreateProvider(config, null, null, null);

            //assert
            sut.Should().BeOfType <XrecordIntakeProvider>();
        }