示例#1
0
        public async Task CanCreateAssignments()
        {
            _assignmentRepositoryMock.Setup(x => x.InsertAssignment(It.Is <Assignment>(y => y.UserId == 2 && y.PlanId == 1))).Verifiable();
            await _assignmentService.CreateAssignments(1, new List <int>() { 2 }, DateTime.Now);

            _assignmentRepositoryMock.Verify();
        }