Example #1
0
 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;
 }
Example #3
0
 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;
 }
Example #4
0
 public MessageKeysByGroup(string connectionString, IChildGroupsOfGroup childGroupsOfGroup, ITopicsByGroup topicByGroup)
     : base(connectionString)
 {
     this.childGroupsOfGroup = childGroupsOfGroup;
     this.topicByGroup = topicByGroup;
 }