public void InformOwnerViaEmailOfUpgrade()
        {
            var item = new Item {
                Id = 1, ItemType = ItemType.MemberShip, Name = "Membership"
            };

            var rule = new MemberShipUpgradeRule();

            var actual = rule.Apply(item);

            Assert.Contains("Informed Owner of Upgradation", actual.Activity);
        }
        public void ActivateMembershipUpgrade()
        {
            var item = new Item {
                Id = 1, ItemType = ItemType.MemberShip, Name = "someProduct"
            };

            var rule = new MemberShipUpgradeRule();

            var actual = rule.Apply(item);

            Assert.Contains("Membership Upgrade Activated", actual.Activity);
        }
        public void ApplicationReturnsARuleLog()
        {
            var item = new Item {
                Id = 1, ItemType = ItemType.MemberShip, Name = "someProduct"
            };

            var rule = new MemberShipUpgradeRule();

            var actual = rule.Apply(item);

            Assert.IsType(typeof(RuleLog), actual);
            Assert.Equal("Membership Upgrade Rule", actual.RuleName);
        }
        public void ApplysForMembership()
        {
            var item = new Item {
                Id = 1, ItemType = ItemType.MemberShip, Name = "someProduct"
            };

            var rule = new MemberShipUpgradeRule();

            var actual = rule.Apply(item);

            Assert.NotNull(actual);
            Assert.IsType(typeof(RuleLog), actual);
        }