Пример #1
0
        public void AddAssignmentSwap()
        {
            // Arrange:
            AddAssignmentGroupSwapViewModel swapModel = new AddAssignmentGroupSwapViewModel
            {
                BaseAssignmentGroupID = 1,
                SwapAssignmentGroupID = 3
            };

            // Act:
            AssignmentGroupSwapDTO swapDTO = _service.AddAssignmentGroupSwap(swapModel);

            // Assert:
            Assert.AreEqual("Generic Group 1", swapDTO.FirstAssignmentGroup.Name);
            Assert.AreEqual("Generic Group 3", swapDTO.SecondAssignmentGroup.Name);
        }
 public AssignmentGroupSwapDTO AddAssignmentGroupSwap(AddAssignmentGroupSwapViewModel swapModel)
 {
     return(_assignmentService.AddAssignmentGroupSwap(swapModel));
 }