Example #1
0
        public void HasAnyLearningDeliveryFAMCodesForType_FalseNull()
        {
            var codes = new string[] { "CodeOne", "CodeThree" };

            var queryService = new LearningDeliveryFAMQueryService();

            queryService.HasAnyLearningDeliveryFAMCodesForType(null, "TypeTwo", codes).Should().BeFalse();
        }
Example #2
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();
        }
Example #3
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();
        }