public void StatusUpdated(ITask task, IProject project) { _client.SendMessage(EventLookup.TaskStatusUpdated, new TaskStatusUpdatedMessage { TaskId = task.Id, AssignedUserId = task.AssignedUserId, Status = task.Status, ProjectId = project.Id, CreatorId = project.CreatorId }); }
public void PermissionsUpdated(int userId, IProjectPermission[] permissions) { _client.SendMessage(EventLookup.PermissionsUpdated, new PermissionsUpdatedMessage { UserId = userId, Permissions = permissions }); }
public void SendMethodShouldSerializeObjectBeforeSendTest() { var sentObject = new object(); _client.SendMessage(EventLookup.TaskStatusUpdated, sentObject); _serializerMock.Verify(x => x.Serialize(sentObject), Times.Once); }