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>>());
 }
Exemple #2
0
 public CreateTopicCommand(
     IExistsTopicByName existsTopicByName,
     IEntityById entityById,
     IRepository<Topic> repository)
 {
     this.entityById = entityById;
     this.existsTopicByName = existsTopicByName;
     this.repository = repository;
 }
Exemple #3
0
 public CreateTopicCommand(
     IExistsTopicByName existsTopicByName,
     IEntityById entityById,
     IRepository <Topic> repository)
 {
     this.entityById        = entityById;
     this.existsTopicByName = existsTopicByName;
     this.repository        = repository;
 }
 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> >()));
 }