Ejemplo n.º 1
0
        public void AddAndRetrieveRuleSet()
        {
            var sut = new PaymentProcessor(new TextRepository());

            sut.AddRuleSet("CIRCLE_K", 15, 5);

            var rules = sut.GetRules();

            Assert.Single(rules);

            var set = rules.Single();

            Assert.Equal("CIRCLE_K", set.MerchantName);
            Assert.Equal(15, set.FeePercentageDiscount);
            Assert.Equal(5, set.FixedFeePerMonth);
        }