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); }
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(); }