コード例 #1
0
        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);
        }
コード例 #2
0
 public List <AssignmentGroupDTO> GetAssignmentGroups(int courseInstanceID)
 {
     return(_assignmentService.GetAssignmentGroups(courseInstanceID));
 }