public MessageKeysBySubscription(string connectionString, IEntityById entityById, IMessageKeysByTopic messageByTopic, IMessageKeysByGroup messageByGroup) : base(connectionString) { this.entityById = entityById; this.messageByTopic = messageByTopic; this.messageByGroup = messageByGroup; }
public DeleteRetryCommand( IEntityById entityById, IRepository<Retry> repository) { this.entityById = entityById; this.repository = repository; }
public DeleteTopicCommand( IEntityById entityById, IRepository<Topic> repository) { this.entityById = entityById; this.repository = repository; }
public IDeleteTopicCommand CreateCommand(IEntityById queryEntityById = null, IRepository<Topic> cud = null) { return new DeleteTopicCommand( queryEntityById ?? Mock.Of<IEntityById>(), cud ?? Mock.Of<IRepository<Topic>>()); }
public DeleteTopicCommand( IEntityById entityById, IRepository <Topic> repository) { this.entityById = entityById; this.repository = repository; }
public UpdateRetryCommand( IEntityById entityById, IRepository <Retry> repository) { this.entityById = entityById; this.repository = repository; }
public IDeleteTopicCommand CreateCommand(IEntityById queryEntityById = null, IRepository <Topic> cud = null) { return(new DeleteTopicCommand( queryEntityById ?? Mock.Of <IEntityById>(), cud ?? Mock.Of <IRepository <Topic> >())); }
public CreateSubscriptionCommand( IQueryValidator queryValidator, IEntityById entityById, IRepository<Subscription> repository) { this.queryValidator = queryValidator; this.entityById = entityById; this.repository = repository; }
private static ICreateGroupCommand CreateCreateGroupCommand( IExistsGroupByGroupName existGroupByGroupName = null, IEntityById entityById = null, IRepository<Group> cudGroup = null) { return new CreateGroupCommand(existGroupByGroupName ?? Mock.Of<IExistsGroupByGroupName>(), entityById ?? Mock.Of<IEntityById>(), cudGroup ?? Mock.Of<IRepository<Group>>()); }
public CreateSubscriptionCommand( IQueryValidator queryValidator, IEntityById entityById, IRepository <Subscription> repository) { this.queryValidator = queryValidator; this.entityById = entityById; this.repository = repository; }
public CreateGroupCommand( IExistsGroupByGroupName existGroupByGroupName, IEntityById entityById, IRepository <Group> repository) { this.existGroupByGroupName = existGroupByGroupName; this.entityById = entityById; this.repository = repository; }
private static ICreateGroupCommand CreateCreateGroupCommand( IExistsGroupByGroupName existGroupByGroupName = null, IEntityById entityById = null, IRepository <Group> cudGroup = null) { return(new CreateGroupCommand(existGroupByGroupName ?? Mock.Of <IExistsGroupByGroupName>(), entityById ?? Mock.Of <IEntityById>(), cudGroup ?? Mock.Of <IRepository <Group> >())); }
public FeedResource( IGetWorkingFeedForTopic getWorkingFeedForTopic, IEntityById entityById, IMessageByMessageKey messageByMessageKey) { this.getWorkingFeedForTopic = getWorkingFeedForTopic; this.entityById = entityById; this.messageByMessageKey = messageByMessageKey; }
public SubscriptionResource( IUpdateSubscriptionCommand updateCommand, IDeleteSubscriptionCommand deleteCommand, IEntityById entityById) { this.updateCommand = updateCommand; this.deleteCommand = deleteCommand; this.entityById = entityById; }
public CreateTopicCommand( IExistsTopicByName existsTopicByName, IEntityById entityById, IRepository<Topic> repository) { this.entityById = entityById; this.existsTopicByName = existsTopicByName; this.repository = repository; }
public CreateTopicCommand( IExistsTopicByName existsTopicByName, IEntityById entityById, IRepository <Topic> repository) { this.entityById = entityById; this.existsTopicByName = existsTopicByName; this.repository = repository; }
public CreateGroupCommand( IExistsGroupByGroupName existGroupByGroupName, IEntityById entityById, IRepository<Group> repository) { this.existGroupByGroupName = existGroupByGroupName; this.entityById = entityById; this.repository = repository; }
public CreateMessageCommand( IEntityById entityById, IMessageRepository repository, IEventAggregator eventAggregator) { this.entityById = entityById; this.repository = repository; this.eventAggregator = eventAggregator; }
private static IUpdateTopicCommand CreateUpdateTopicCommand( IExistsTopicByName existsTopicByName = null, IEntityById entityById = null, IRepository <Topic> cudTopic = null) { return(new UpdateTopicCommand(existsTopicByName ?? Mock.Of <IExistsTopicByName>(), entityById ?? Mock.Of <IEntityById>(), cudTopic ?? Mock.Of <IRepository <Topic> >())); }
public CreateSubscriptionCommand CreateCommand( IQueryValidator isQueryValid = null, IEntityById entityById = null, IRepository <Subscription> repository = null) { return(new CreateSubscriptionCommand( isQueryValid ?? Mock.Of <IQueryValidator>(qv => qv.IsValid(It.IsAny <string>())), entityById ?? Mock.Of <IEntityById>(eb => eb.Exist <Topic>(It.IsAny <Identity>())), repository ?? Mock.Of <IRepository <Subscription> >())); }
public TopicResource(IEntityById entityById, IUpdateTopicCommand updateGroupCommand, IDeleteTopicCommand deleteGroupCommand, ITopicByName topicByName) { this.entityById = entityById; this.updateGroupCommand = updateGroupCommand; this.deleteGroupCommand = deleteGroupCommand; this.topicByName = topicByName; }
private MessageKeysBySubscription CreateQuery( IEntityById entityById = null, IMessageKeysByGroup messageKeysByGroup = null, IMessageKeysByTopic messageKeysByTopic = null) { return(new MessageKeysBySubscription(base.connectionString, entityById ?? Mock.Of <IEntityById>(), messageKeysByTopic ?? Mock.Of <IMessageKeysByTopic>(), messageKeysByGroup ?? Mock.Of <IMessageKeysByGroup>())); }
private MessageKeysBySubscription CreateQuery( IEntityById entityById = null, IMessageKeysByGroup messageKeysByGroup = null, IMessageKeysByTopic messageKeysByTopic = null) { return new MessageKeysBySubscription(base.connectionString, entityById ?? Mock.Of<IEntityById>(), messageKeysByTopic ?? Mock.Of<IMessageKeysByTopic>(), messageKeysByGroup ?? Mock.Of<IMessageKeysByGroup>()); }
public CreateSubscriptionCommand CreateCommand( IQueryValidator isQueryValid = null, IEntityById entityById = null, IRepository<Subscription> repository = null) { return new CreateSubscriptionCommand( isQueryValid ?? Mock.Of<IQueryValidator>(qv => qv.IsValid(It.IsAny<string>())), entityById ?? Mock.Of<IEntityById>(eb => eb.Exist<Topic>(It.IsAny<Identity>())), repository ?? Mock.Of<IRepository<Subscription>>()); }
private static ICreateMessageCommand CreateCreateMessageCommand( IEntityById entityById = null, IMessageRepository cudMessage = null, IEventAggregator eventAggregator = null) { return new CreateMessageCommand( entityById ?? Mock.Of<IEntityById>(), cudMessage ?? Mock.Of<IMessageRepository>(), eventAggregator ?? Mock.Of<IEventAggregator>() ); }
public DeleteGroupCommand CreateCommand(IEntityById queryEntityById = null, IRepository<Group> cudGroup = null, IChildGroupsOfGroup childGroupsOfGroup = null, ITopicsByGroup queryTopicsByGroup = null) { return new DeleteGroupCommand( queryEntityById ?? Mock.Of<IEntityById>(), cudGroup ?? Mock.Of<IRepository<Group>>(), childGroupsOfGroup ?? Mock.Of<IChildGroupsOfGroup>(), queryTopicsByGroup ?? Mock.Of<ITopicsByGroup>()); }
public DeleteGroupCommand CreateCommand(IEntityById queryEntityById = null, IRepository <Group> cudGroup = null, IChildGroupsOfGroup childGroupsOfGroup = null, ITopicsByGroup queryTopicsByGroup = null) { return(new DeleteGroupCommand( queryEntityById ?? Mock.Of <IEntityById>(), cudGroup ?? Mock.Of <IRepository <Group> >(), childGroupsOfGroup ?? Mock.Of <IChildGroupsOfGroup>(), queryTopicsByGroup ?? Mock.Of <ITopicsByGroup>())); }
public DeleteGroupCommand( IEntityById entityById, IRepository<Group> repository, IChildGroupsOfGroup childGroupsOfGroup, ITopicsByGroup topicsByGroup) { this.entityById = entityById; this.repository = repository; this.childGroupsOfGroup = childGroupsOfGroup; this.topicsByGroup = topicsByGroup; }
public DeleteGroupCommand( IEntityById entityById, IRepository <Group> repository, IChildGroupsOfGroup childGroupsOfGroup, ITopicsByGroup topicsByGroup) { this.entityById = entityById; this.repository = repository; this.childGroupsOfGroup = childGroupsOfGroup; this.topicsByGroup = topicsByGroup; }
private static ICreateMessageCommand CreateCreateMessageCommand( IEntityById entityById = null, IMessageRepository cudMessage = null, IEventAggregator eventAggregator = null) { return(new CreateMessageCommand( entityById ?? Mock.Of <IEntityById>(), cudMessage ?? Mock.Of <IMessageRepository>(), eventAggregator ?? Mock.Of <IEventAggregator>() )); }
public GroupResource(IEntityById entityById, IUpdateGroupCommand updateGroupCommand, IDeleteGroupCommand deleteGroupCommand, ITopicsByGroup topicsByGroup, IGroupByName groupByName) { this.entityById = entityById; this.updateGroupCommand = updateGroupCommand; this.deleteGroupCommand = deleteGroupCommand; this.topicsByGroup = topicsByGroup; this.groupByName = groupByName; }
public UpdateSubscriptionCommand CreateCommand( IEntityById entityById = null, IQueryValidator queryValidator = null, IRepository<Subscription> repository = null ) { return new UpdateSubscriptionCommand( entityById ?? Mock.Of<IEntityById>(eb => eb.Exist<Subscription>(It.IsAny<Identity>()) == true), queryValidator ?? Mock.Of<IQueryValidator>(qv => qv.IsValid(It.IsAny<string>()) == true), repository ?? Mock.Of<IRepository<Subscription>>() ); }
public UpdateSubscriptionCommand CreateCommand( IEntityById entityById = null, IQueryValidator queryValidator = null, IRepository <Subscription> repository = null ) { return(new UpdateSubscriptionCommand( entityById ?? Mock.Of <IEntityById>(eb => eb.Exist <Subscription>(It.IsAny <Identity>()) == true), queryValidator ?? Mock.Of <IQueryValidator>(qv => qv.IsValid(It.IsAny <string>()) == true), repository ?? Mock.Of <IRepository <Subscription> >() )); }
public RetryService(IEntityById entityById, ICreateRetryCommand createRetryCommand, IDeleteRetryCommand deleteRetryCommand, IUpdateRetryCommand updateRetryCommand, IGenericJsonPagedQuery genericJsonPagedQuery) { this.entityById = entityById; this.createRetryCommand = createRetryCommand; this.deleteRetryCommand = deleteRetryCommand; this.updateRetryCommand = updateRetryCommand; this.genericJsonPagedQuery = genericJsonPagedQuery; }
public GroupController( IGenericJsonPagedQuery genericJsonPagedQuery, IEntityById entityById, ICreateGroupCommand createGroupCommand, IUpdateGroupCommand updateGroupCommand, IDeleteGroupCommand deleteGroupCommand ) { this.genericJsonPagedQuery = genericJsonPagedQuery; this.entityById = entityById; this.createGroupCommand = createGroupCommand; this.updateGroupCommand = updateGroupCommand; this.deleteGroupCommand = deleteGroupCommand; }
public TopicController( IEntityById entityById, ITopicsSortedByName topicsSortedByName, IGroupsSortedByName groupsSortedByName, ICreateTopicCommand createTopicCommand, IUpdateTopicCommand updateTopicCommand, IDeleteTopicCommand deleteTopicCommand) { this.entityById = entityById; this.topicsSortedByName = topicsSortedByName; this.groupsSortedByName = groupsSortedByName; this.createTopicCommand = createTopicCommand; this.updateTopicCommand = updateTopicCommand; this.deleteTopicCommand = deleteTopicCommand; }
private static TopicController CreateController( ITopicsSortedByName topicsSortedByName = null, IEntityById entityById = null, IGroupsSortedByName groupsSortedByName = null, ICreateTopicCommand createTopicCommand = null, IUpdateTopicCommand updateTopicCommand = null, IDeleteTopicCommand deleteTopicCommand = null) { var defaultGroupQuery = Mock.Of <IGroupsSortedByName>(q => q.Execute() == new Group[] { SampleGroup }); return(new TopicController(entityById ?? Mock.Of <IEntityById>(), topicsSortedByName ?? Mock.Of <ITopicsSortedByName>(), groupsSortedByName ?? defaultGroupQuery, createTopicCommand ?? Mock.Of <ICreateTopicCommand>(), updateTopicCommand ?? Mock.Of <IUpdateTopicCommand>(), deleteTopicCommand ?? Mock.Of <IDeleteTopicCommand>() )); }
public DeleteSubscriptionCommand(IEntityById entityById, IRepository <Subscription> repository) { this.entityById = entityById; this.repository = repository; }
private static TopicController CreateController( ITopicsSortedByName topicsSortedByName = null, IEntityById entityById = null, IGroupsSortedByName groupsSortedByName = null, ICreateTopicCommand createTopicCommand = null, IUpdateTopicCommand updateTopicCommand = null, IDeleteTopicCommand deleteTopicCommand = null) { var defaultGroupQuery = Mock.Of<IGroupsSortedByName>(q => q.Execute() == new Group[]{SampleGroup}); return new TopicController( entityById ?? Mock.Of<IEntityById>(), topicsSortedByName ?? Mock.Of<ITopicsSortedByName>(), groupsSortedByName ?? defaultGroupQuery, createTopicCommand ?? Mock.Of<ICreateTopicCommand>(), updateTopicCommand ?? Mock.Of<IUpdateTopicCommand>(), deleteTopicCommand ?? Mock.Of<IDeleteTopicCommand>() ); }
public DeleteSubscriptionCommand(IEntityById entityById, IRepository<Subscription> repository) { this.entityById = entityById; this.repository = repository; }
private static ICreateTopicCommand CreateCreateTopicCommand( IExistsTopicByName existsTopicByName = null, IEntityById entityById = null, IRepository<Topic> cudTopic = null) { return new CreateTopicCommand(existsTopicByName ?? Mock.Of<IExistsTopicByName>(), entityById ?? Mock.Of<IEntityById>(), cudTopic ?? Mock.Of<IRepository<Topic>>()); }