public EndToEndTestInboxController( Fifthweek.Api.Core.ICommandHandler <Fifthweek.Api.EndToEndTestMailboxes.Commands.DeleteAllMessagesCommand> deleteAllMessages, Fifthweek.Api.Core.IQueryHandler <Fifthweek.Api.EndToEndTestMailboxes.Queries.TryGetLatestMessageQuery, Fifthweek.Api.EndToEndTestMailboxes.Queries.Message> tryGetLatestMessage) { if (deleteAllMessages == null) { throw new ArgumentNullException("deleteAllMessages"); } if (tryGetLatestMessage == null) { throw new ArgumentNullException("tryGetLatestMessage"); } this.deleteAllMessages = deleteAllMessages; this.tryGetLatestMessage = tryGetLatestMessage; }
public ChannelController( Fifthweek.Api.Core.ICommandHandler <Fifthweek.Api.Channels.Commands.CreateChannelCommand> createChannel, Fifthweek.Api.Core.ICommandHandler <Fifthweek.Api.Channels.Commands.UpdateChannelCommand> updateChannel, Fifthweek.Api.Core.ICommandHandler <Fifthweek.Api.Channels.Commands.DeleteChannelCommand> deleteChannel, Fifthweek.Api.Identity.Shared.Membership.IRequesterContext requesterContext, Fifthweek.Shared.IGuidCreator guidCreator) { if (createChannel == null) { throw new ArgumentNullException("createChannel"); } if (updateChannel == null) { throw new ArgumentNullException("updateChannel"); } if (deleteChannel == null) { throw new ArgumentNullException("deleteChannel"); } if (requesterContext == null) { throw new ArgumentNullException("requesterContext"); } if (guidCreator == null) { throw new ArgumentNullException("guidCreator"); } this.createChannel = createChannel; this.updateChannel = updateChannel; this.deleteChannel = deleteChannel; this.requesterContext = requesterContext; this.guidCreator = guidCreator; }