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>>()); }
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; }
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> >())); }