示例#1
0
        public List <UserNotificationSetting> GetUserNotificationSettings()
        {
            var setting = new UserNotificationSetting("123", "456", 1, false, false, 1);
            List <UserNotificationSetting> userNotificationSetting = new List <UserNotificationSetting>();

            setting.SetIdForTest(100);
            setting.setNotificationOperationCodeForTest();
            userNotificationSetting.Add(setting);
            return(userNotificationSetting);
        }
示例#2
0
        public Supplier GetSupplierData()
        {
            List <UserNotificationSetting> userNotificationSettings = new List <UserNotificationSetting>();
            UserNotificationSetting        userNotificationSetting  = new UserNotificationSetting("opcode", _Cr, 1, true, true, 1);

            userNotificationSetting.SetIdForTest(100);
            userNotificationSetting.setNotificationOperationCodeForTest();
            userNotificationSettings.Add(userNotificationSetting);
            Supplier supplier = new Supplier(_Cr, _Cr, userNotificationSettings);

            supplier.UpdateNotificationSetting(100, true, true);
            return(supplier);
        }