예제 #1
0
        public void TestGetEmployeeSubjectsByIdReturnTwoSubjects()
        {
            SubjectCrud _sut     = new SubjectCrud();
            int         expected = 2;
            int         actual   = _sut.GetEmployeeSubjectsById(1).Count;

            Assert.AreEqual(expected, actual);
        }
예제 #2
0
        public void TestGetEmployeeSubjectsByIdReturnAListOfSubjects()
        {
            SubjectCrud _sut     = new SubjectCrud();
            var         subjects = _sut.GetEmployeeSubjectsById(1);
            Type        expected = typeof(SubjectM);
            Type        actual   = subjects[0].GetType();

            Assert.AreEqual(expected, actual);
        }