public void return_at_least_1_when_adding_a_new_subscription()
        {
            var stateManager = new StateValueManagement();

            stateManager.AddStateValue(new StateValue("sentinel1", "package1", "statename", 3, TypeOfValue.Int));

            var subscriptionManager = new SubscriptionStateValueManagement(stateManager);

            subscriptionManager.AddSubscription(new SentinelKey("sentinel.package"), "sentinel1", "package1", "statename");
            Check.That(subscriptionManager.GetAllSubscriptions().Count).IsStrictlyGreaterThan(0);
        }
        public void return_0_when_adding_and_then_remove_subscription()
        {
            var stateManager = new StateValueManagement();

            stateManager.AddStateValue(new StateValue("sentinel1", "package1", "statename", 3, TypeOfValue.Int));

            var subscriptionManager = new SubscriptionStateValueManagement(stateManager);
            var subscriptionId      = subscriptionManager.AddSubscription(new SentinelKey("sentinel.package"), "sentinel1", "package1", "statename");

            subscriptionManager.RemoveSubscription(new SentinelKey("sentinel.package"), subscriptionId);

            Check.That(subscriptionManager.GetAllSubscriptions().Count).IsEqualTo(0);
        }
        public void return_0_subscription()
        {
            var subscriptionManager = new SubscriptionStateValueManagement(new StateValueManagement());

            Check.That(subscriptionManager.GetAllSubscriptions().Count).IsEqualTo(0);
        }