/// <summary> /// Initializes a new instance of the <see cref="BasicRepository{T}"/> class. /// </summary> /// <param name="dbAccess"> /// The database Access. /// </param> /// <param name="raiseEvent"> /// The raise Event. /// </param> /// <param name="haveBoardId"> /// The have Board Id. /// </param> public BasicRepository( IDbAccess dbAccess, IRaiseEvent raiseEvent, IHaveBoardID haveBoardId) { this.DbAccess = dbAccess; this.DbEvent = raiseEvent; this.BoardID = haveBoardId.BoardID; }
/// <summary> /// Initializes a new instance of the <see cref="CurrentBoardSettings"/> class. /// </summary> /// <param name="injectServices"> /// The inject services. /// </param> /// <param name="haveBoardId"> /// The have board id. /// </param> /// <param name="treatCacheKey"> /// The treat Cache Key. /// </param> public CurrentBoardSettings( [NotNull] IInjectServices injectServices, [NotNull] IHaveBoardID haveBoardId, [NotNull] ITreatCacheKey treatCacheKey) { CodeContracts.VerifyNotNull(injectServices, "injectServices"); CodeContracts.VerifyNotNull(haveBoardId, "haveBoardId"); CodeContracts.VerifyNotNull(treatCacheKey, "treatCacheKey"); this.injectServices = injectServices; this.haveBoardId = haveBoardId; this.treatCacheKey = treatCacheKey; }
/// <summary> /// Initializes a new instance of the <see cref="CurrentBoardSettings"/> class. /// </summary> /// <param name="applicationStateBase"> /// The application state base. /// </param> /// <param name="injectServices"> /// The inject services. /// </param> /// <param name="haveBoardId"> /// The have board id. /// </param> /// <param name="treatCacheKey"> /// </param> /// <param name="boardRepository"> /// The board Repository. /// </param> public CurrentBoardSettings( [NotNull] HttpApplicationStateBase applicationStateBase, [NotNull] IInjectServices injectServices, [NotNull] IHaveBoardID haveBoardId, [NotNull] ITreatCacheKey treatCacheKey) { CodeContracts.VerifyNotNull(applicationStateBase, "applicationStateBase"); CodeContracts.VerifyNotNull(injectServices, "injectServices"); CodeContracts.VerifyNotNull(haveBoardId, "haveBoardId"); CodeContracts.VerifyNotNull(treatCacheKey, "treatCacheKey"); this._applicationStateBase = applicationStateBase; this._injectServices = injectServices; this._haveBoardId = haveBoardId; this._treatCacheKey = treatCacheKey; }
/// <summary> /// Initializes a new instance of the <see cref="TreatCacheKeyWithBoard"/> class. /// </summary> /// <param name="haveBoardId"> /// The board id. /// </param> public TreatCacheKeyWithBoard([NotNull] IHaveBoardID haveBoardId) { CodeContracts.VerifyNotNull(haveBoardId); this.HaveBoardId = haveBoardId; }
/// <summary> /// Initializes a new instance of the <see cref="BasicRepository{T}"/> class. /// </summary> /// <param name="dbFunction"> /// The db function. /// </param> /// <param name="dbAccess"> /// The db Access. /// </param> /// <param name="raiseEvent"> /// The raise Event. /// </param> /// <param name="haveBoardId"> /// The have Board Id. /// </param> public BasicRepository(IDbFunction dbFunction, IDbAccessV2 dbAccess, IRaiseEvent raiseEvent, IHaveBoardID haveBoardId) { this.DbFunction = dbFunction; this.DbAccess = dbAccess; this.DbEvent = raiseEvent; this.BoardID = haveBoardId.BoardID; }
/// <summary> /// Initializes a new instance of the <see cref="TreatCacheKeyWithBoard"/> class. /// </summary> /// <param name="haveBoardId"> /// The board id. /// </param> public TreatCacheKeyWithBoard([NotNull] IHaveBoardID haveBoardId) { CodeContracts.ArgumentNotNull(haveBoardId, "haveBoardId"); this.HaveBoardId = haveBoardId; }