public void GetAssignmentGroups() { // Arrange: List <AssignmentGroup> allGroups = _dataFactory.GetMockAssignmentGroupList(); // Act: List <AssignmentGroupDTO> groupInstances = _service.GetAssignmentGroups(1); // Assert: Assert.AreEqual(3, allGroups.Count); Assert.AreEqual(2, groupInstances.Count); Assert.AreEqual("Generic Group 1", groupInstances[0].Name); }
public List <AssignmentGroupDTO> GetAssignmentGroups(int courseInstanceID) { return(_assignmentService.GetAssignmentGroups(courseInstanceID)); }