/// <summary> /// Constructor to inject the view model dependencies /// </summary> /// <param name="wallPostRepository">Wall post data access</param> /// <param name="wallReplyRepository">Wall reply data access</param> /// <param name="taxonomyService">Taxonomy service</param> /// <param name="resourceLocator">Resource utility</param> /// <param name="log">Logging utility</param> public WallViewModel(IWallPostRepository wallPostRepository, IWallReplyRepository wallReplyRepository, ITaxonomyService taxonomyService, IResourceLocator resourceLocator, ILogger log) { this._wallPostRepository = wallPostRepository; this._wallReplyRepository = wallReplyRepository; this._taxonomyService = taxonomyService; this._resourceLocator = resourceLocator; this._log = log; }
/// <summary> /// Constructor to inject repository dependencies /// </summary> /// <param name="binder">The entity binder for mappings between list items and entities</param> /// <param name="wallRepliesRepository">Wall replies repository</param> /// <param name="log">Logging utility</param> public WallPostRepository(ISharePointEntityBinder binder, IWallReplyRepository wallRepliesRepository, ILogger log) { this._binder = binder; this._wallRepliesRepository = wallRepliesRepository; this._log = log; }