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; }
public CreateCreatorFreeAccessUsersSnapshotDbStatement( Fifthweek.Shared.IGuidCreator guidCreator, Fifthweek.Payments.SnapshotCreation.ISnapshotTimestampCreator timestampCreator, Fifthweek.Api.Persistence.IFifthweekDbConnectionFactory connectionFactory) { if (guidCreator == null) { throw new ArgumentNullException("guidCreator"); } if (timestampCreator == null) { throw new ArgumentNullException("timestampCreator"); } if (connectionFactory == null) { throw new ArgumentNullException("connectionFactory"); } this.guidCreator = guidCreator; this.timestampCreator = timestampCreator; this.connectionFactory = connectionFactory; }