public void Test_Diploma_Requirements_Is_Null_Throws_Argument_Null_Exception()
        {
            var tracker = new Bl.GraduationTracker(new Repository());

            var diploma = new Diploma
            {
                Id             = 1,
                Credits        = 4,
                RequirementIds = null
            };

            var student = new Student
            {
                Id      = 1,
                Courses = new[]
                {
                    new Course {
                        Id = 1, Name = "Math", Mark = 20, Credits = 1
                    },
                }
            };

            TestHelperExtensions.Throw <ArgumentException>(() => tracker.HasGraduated(diploma, student),
                                                           $"{nameof(Requirement)}");
        }
        public void Test_Student_Is_Null_Throws_Argument_Null_Exception()
        {
            var tracker = new Bl.GraduationTracker(new Repository());

            var diploma = new Diploma
            {
                Id             = 1,
                Credits        = 4,
                RequirementIds = new[] { 100, 102, 103, 104 }
            };

            TestHelperExtensions.Throw <ArgumentNullException>(() => tracker.HasGraduated(diploma, null),
                                                               $"Value cannot be null.\r\nParameter name: {nameof(Student).ToLower()}");
        }
        public void Test_Diploma_Is_Null_Throws_Argument_Null_Exception()
        {
            var tracker = new Bl.GraduationTracker(new Repository());


            var student = new Student
            {
                Id      = 1,
                Courses = new[]
                {
                    new Course {
                        Id = 1, Name = "Math", Mark = 20, Credits = 1
                    },
                }
            };

            TestHelperExtensions.Throw <ArgumentNullException>(() => tracker.HasGraduated(null, student),
                                                               $"Value cannot be null.\r\nParameter name: {nameof(Diploma).ToLower()}");
        }