public void GetAssignmentsInGroup() { // Arrange: List <AssignmentGroup> allGroups = _dataFactory.GetMockAssignmentGroupList(); List <Assignment> allAssignments = _dataFactory.GetMockAssignmentList(); // Act: List <AssignmentDTO> assignments = _service.GetAssignmentsInGroup(1); // Assert: Assert.AreEqual(allAssignments.Count, 4); Assert.AreEqual(assignments.Count, 2); }
public List <AssignmentDTO> GetAssignmentsInGroup(int assignmentGroupID) { return(_assignmentService.GetAssignmentsInGroup(assignmentGroupID)); }