예제 #1
0
        public void Handler_UpdateUserGroup()
        {
            var updateUserCommand = new UpdateUserGroupCommand();

            updateUserCommand.GroupId = 1;
            updateUserCommand.UserId  = 1;

            var result = updateUserGroupCommandHandler.
                         Handle(updateUserCommand, new System.Threading.CancellationToken()).Result;

            Assert.That(result.Success, Is.True);
        }
예제 #2
0
        public void Handler_UpdateUserGroup()
        {
            var updateUserCommand = new UpdateUserGroupCommand();

            updateUserCommand.GroupId = new int[] { 1 };
            updateUserCommand.UserId  = 1;

            var result = _updateUserGroupCommandHandler.
                         Handle(updateUserCommand, new System.Threading.CancellationToken()).Result;

            result.Success.Should().BeTrue();
        }