示例#1
0
 public MessageKeysBySubscription(string connectionString, IEntityById entityById, IMessageKeysByTopic messageByTopic, IMessageKeysByGroup messageByGroup)
     : base(connectionString)
 {
     this.entityById = entityById;
     this.messageByTopic = messageByTopic;
     this.messageByGroup = messageByGroup;
 }
示例#2
0
 public MessageKeysBySubscription(string connectionString, IEntityById entityById, IMessageKeysByTopic messageByTopic, IMessageKeysByGroup messageByGroup)
     : base(connectionString)
 {
     this.entityById     = entityById;
     this.messageByTopic = messageByTopic;
     this.messageByGroup = messageByGroup;
 }
 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>());
 }
示例#4
0
 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>()));
 }
示例#5
0
 public MessagesResource(
     ICreateMessageCommand createMessageCommand,
     IMessageKeysByTopic messageKeysByTopic,
     IMessageKeysByGroup messageKeysByGroup,
     IMessageKeysBySubscription messageKeysBySubscription)
 {
     this.createMessageCommand = createMessageCommand;
     this.messageKeysBySubscription = messageKeysBySubscription;
     this.messageKeysByTopic = messageKeysByTopic;
     this.messageKeysByGroup= messageKeysByGroup;
 }
示例#6
0
 public MessagesResource(
     ICreateMessageCommand createMessageCommand,
     IMessageKeysByTopic messageKeysByTopic,
     IMessageKeysByGroup messageKeysByGroup,
     IMessageKeysBySubscription messageKeysBySubscription)
 {
     this.createMessageCommand      = createMessageCommand;
     this.messageKeysBySubscription = messageKeysBySubscription;
     this.messageKeysByTopic        = messageKeysByTopic;
     this.messageKeysByGroup        = messageKeysByGroup;
 }