public void SetNotification(BlinkStickClient.DataModel.CustomNotification notification)
        {
            this.Notification        = notification as NotificationTest;
            comboboxFrequency.Active = (int)Notification.Frequency;

            buttonTrigger.Sensitive = this.Notification.DataModel != null;
        }
        public void AddTest()
        {
            //Prepare
            Test.Config();

            //Action
            var valueBefore = new NotificationTest(3, 1, 1, new Dictionary <string, string>(), DateTime.Now,
                                                   NotificationType.WareTaked);
            var countBefore = Test.ServiceLocator.NotificationService.GetNotifications("test").Count();

            Test.ServiceLocator.NotificationService.Add(valueBefore);
            var valueAfter = Test.ServiceLocator.NotificationService.GetNotifications("test").LastOrDefault();
            var countAfter = Test.ServiceLocator.NotificationService.GetNotifications("test").Count();

            //Confirm
            Assert.IsNotNull(valueAfter);
            Assert.AreEqual(valueBefore.Id, valueAfter.Id);
            Assert.AreEqual(valueBefore.ClientId, valueAfter.ClientId);
            Assert.AreEqual(valueBefore.ObjectId, valueAfter.ObjectId);
            Assert.AreEqual(valueBefore.Type, valueAfter.Type);
            Assert.AreEqual(countBefore, countAfter - 1);
        }
 void Awake()
 {
     Instance = this;
     LocalNotification.ClearNotifications();
 }