public void TestGetEmployeeSubjectsByIdReturnTwoSubjects() { SubjectCrud _sut = new SubjectCrud(); int expected = 2; int actual = _sut.GetEmployeeSubjectsById(1).Count; Assert.AreEqual(expected, actual); }
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); }