public void Test() { ContractExpiredNotifiyDataManager manager = new ContractExpiredNotifiyDataManager(); manager.Insert(new ContractExpiredNotifiyLogInfo { EDoc2FileId = 2, ExpireDate = DateTime.Today }); Assert.IsTrue(manager.Exist(2, DateTime.Today)); }
public ContractExpiredFolderNotifier(ContractExpiredNotifiyDataManager contractExpiredNotifiyDataManager, ContractFactory factroy, int advanceDays, string notifyMails, int folderId) { this._contractExpiredNotifiyDataManager = contractExpiredNotifiyDataManager; this._factroy = factroy; this._advanceDays = advanceDays; this._notifyMails = notifyMails; this._folderId = folderId; }
public ContractExpiredNotifyService(ContractFactory factroy, int advanceDays, int notifyMetaTypeId, int contractMetaTypeId, int contractNameAttrTypeId) { this._factroy = factroy; this._advanceDays = advanceDays; _contractExpiredNotifiyDataManager = new ContractExpiredNotifiyDataManager(); this._notifyMetaTypeId = notifyMetaTypeId; this._contractMetaTypeId = contractMetaTypeId; this._contractNameAttrTypeId = contractNameAttrTypeId; }