コード例 #1
0
 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
     });
 }
コード例 #2
0
 public void PermissionsUpdated(int userId, IProjectPermission[] permissions)
 {
     _client.SendMessage(EventLookup.PermissionsUpdated,
                         new PermissionsUpdatedMessage {
         UserId = userId, Permissions = permissions
     });
 }
コード例 #3
0
        public void SendMethodShouldSerializeObjectBeforeSendTest()
        {
            var sentObject = new object();

            _client.SendMessage(EventLookup.TaskStatusUpdated, sentObject);
            _serializerMock.Verify(x => x.Serialize(sentObject), Times.Once);
        }