示例#1
0
        public SendWelcomeMail(Account account, IMailGateWay theMockGateWay, IWelcomeMailDal theMockDal)
        {
            _TheDal = theMockDal;
            _TheMailGateWay = theMockGateWay;

            _Account = account;
        }
示例#2
0
        public SendWelcomeMail(Account account)
        {
            _TheDal = DalInstance.WelcomeMailDalInstance;
            _TheMailGateWay = new MailGateWay();

            _Account = account;
        }
示例#3
0
 /// <summary>
 /// SendEmailForBulletin的构造函数,专为测试提供
 /// </summary>
 public AttendanceSendEmail(IMailGateWay mockMail)
 {
     _IMailGateWay = mockMail;
 }
示例#4
0
 /// <summary>
 ///
 /// </summary>
 public AddCourseSendMail(List <Account> accounts, Course course, IMailGateWay mailGateWay, IAccountBll iAccountBll) : this(accounts, course)
 {
     _MailGateWay = mailGateWay;
     _AccountBll  = iAccountBll;
 }