Exemplo n.º 1
0
        public void HasAnyLearningDeliveryFAMCodesForType_FalseNull()
        {
            var codes = new string[] { "CodeOne", "CodeThree" };

            var queryService = new LearningDeliveryFAMQueryService();

            queryService.HasAnyLearningDeliveryFAMCodesForType(null, "TypeTwo", codes).Should().BeFalse();
        }
Exemplo n.º 2
0
        public void HasLearningDeliveryFAMCodeForType_True()
        {
            var learningDeliveryFAMs = new TestLearningDeliveryFAM[]
            {
                new TestLearningDeliveryFAM()
                {
                    LearnDelFAMType = "TypeOne", LearnDelFAMCode = "CodeOne"
                },
                new TestLearningDeliveryFAM()
                {
                    LearnDelFAMType = "TypeTwo", LearnDelFAMCode = "CodeTwo"
                },
            };

            var queryService = new LearningDeliveryFAMQueryService();

            queryService.HasLearningDeliveryFAMCodeForType(learningDeliveryFAMs, "TypeTwo", "CodeTwo").Should().BeTrue();
        }
Exemplo n.º 3
0
        public void HasLearningDeliveryFAMType_False()
        {
            var learningDeliveryFAMs = new TestLearningDeliveryFAM[]
            {
                new TestLearningDeliveryFAM()
                {
                    LearnDelFAMType = "TypeOne"
                },
                new TestLearningDeliveryFAM()
                {
                    LearnDelFAMType = "TypeOne"
                },
                new TestLearningDeliveryFAM()
                {
                    LearnDelFAMType = "TypeTwo"
                }
            };

            var queryService = new LearningDeliveryFAMQueryService();

            queryService.HasLearningDeliveryFAMType(learningDeliveryFAMs, "TypeThree");
        }
Exemplo n.º 4
0
        public void HasAnyLearningDeliveryFAMCodesForType_False_CodesNull()
        {
            var learningDeliveryFAMs = new TestLearningDeliveryFAM[]
            {
                new TestLearningDeliveryFAM()
                {
                    LearnDelFAMType = "TypeOne", LearnDelFAMCode = "CodeOne"
                },
                new TestLearningDeliveryFAM()
                {
                    LearnDelFAMType = "TypeTwo", LearnDelFAMCode = "CodeTwo"
                },
                new TestLearningDeliveryFAM()
                {
                    LearnDelFAMType = "TypeTwo", LearnDelFAMCode = "CodeThree"
                },
            };


            var queryService = new LearningDeliveryFAMQueryService();

            queryService.HasAnyLearningDeliveryFAMCodesForType(learningDeliveryFAMs, "TypeTwo", null).Should().BeFalse();
        }
Exemplo n.º 5
0
        public void HasAnyLearningDeliveryFAMCodesForType_False_Mismatch()
        {
            var learningDeliveryFAMs = new TestLearningDeliveryFAM[]
            {
                new TestLearningDeliveryFAM()
                {
                    LearnDelFAMType = "TypeOne", LearnDelFAMCode = "CodeOne"
                },
                new TestLearningDeliveryFAM()
                {
                    LearnDelFAMType = "TypeTwo", LearnDelFAMCode = "CodeTwo"
                },
                new TestLearningDeliveryFAM()
                {
                    LearnDelFAMType = "TypeTwo", LearnDelFAMCode = "CodeThree"
                },
            };

            var codes = new string[] { "CodeTwo", "CodeThree" };

            var queryService = new LearningDeliveryFAMQueryService();

            queryService.HasAnyLearningDeliveryFAMCodesForType(learningDeliveryFAMs, "TypeOne", codes).Should().BeFalse();
        }
Exemplo n.º 6
0
        public void HasLearningDeliveryFAMType_False_Null()
        {
            var queryService = new LearningDeliveryFAMQueryService();

            queryService.HasLearningDeliveryFAMType(null, "Doesn't Matter");
        }
Exemplo n.º 7
0
        public void HasLearningDeliveryFAMCodeForType_FalseNull()
        {
            var queryService = new LearningDeliveryFAMQueryService();

            queryService.HasLearningDeliveryFAMCodeForType(null, "TypeTwo", "CodeTwo").Should().BeFalse();
        }