Esempio n. 1
0
        protected void userSettingSaveBtn_Click(object sender, EventArgs e)
        {
            BUserSettings bus     = new BUserSettings();
            EmailSettings setting = new EmailSettings()
            {
                Active = true, SendByDay = false, TheHour = "10:00"
            };
            SMSSettings setting1 = new SMSSettings()
            {
                Active = true, SendByDay = true, TheDayHour = "10:00"
            };

            bus.SaveEmailSetting(setting);
            bus.SaveSMSSetting(setting1);
        }
Esempio n. 2
0
        public void SaveSMSSettings_CurrentUSer()
        {
            base.UpdateCurrentUserPersonId(ADOPerson1.ID);
            SMSSettings smsSet = new SMSSettings();

            smsSet            = busUserSettings.GetSMSSetting();
            smsSet.Active     = true;
            smsSet.SendByDay  = true;
            smsSet.TheDayHour = "13:10";
            smsSet.TheHour    = "10:10";
            smsSet.DayCount   = 5;
            ClearSession();
            busUserSettings.SaveSMSSetting(smsSet);
            ClearSession();
            smsSet = busUserSettings.GetSMSSetting();
            Assert.IsTrue(smsSet.SendByDay);
            Assert.IsTrue(smsSet.Active);
            Assert.AreEqual(790, smsSet.DayHour);
        }