public HistoryController(ClanAndPeopleService clanService, IWriteRepository <StoryContent, Guid> writeRepository, ContextService contextService, IStoryReadRepository storyReadRepository) : base("History", "history") { _clanService = clanService; _writeRepository = writeRepository; _contextService = contextService; _storyReadRepository = storyReadRepository; }
public ClanAndPeopleService(ILogger <ClanAndPeopleService> logger, IPersonReadRepository peopleReadRepository, IMemoryCache memoryCache, IUnionReadRepository unionReadRepository, IStoryReadRepository storyReadRepository) { this._logger = logger; _peopleReadRepository = peopleReadRepository; _memoryCache = memoryCache; _unionReadRepository = unionReadRepository; _storyReadRepository = storyReadRepository; }
/// <summary>Initializes a new instance of the <see cref="StoryManager"/> class.</summary> /// <param name="storyReadRepository">The story read repository.</param> /// <param name="storyRepository">The story repository.</param> public StoryManager(IStoryReadRepository storyReadRepository, IStoryRepository storyRepository) { if (storyReadRepository == null) { throw new ArgumentNullException("storyReadRepository"); } if (storyRepository == null) { throw new ArgumentNullException("storyRepository"); } this.storyReadRepository = storyReadRepository; this.storyRepository = storyRepository; }