Esempio n. 1
0
        /// <summary>
        /// Class constructor to initialize some test parameters.
        /// </summary>
        public TestCase()
        {
            Installments = 1;
            OrderId      = "#123456789#";

            Store = StoreRepository.GetStore(1);
            Card  = PersonRepository.GetCard("123456");
            Items = new AntiFraud.Item[]
            {
                new AntiFraud.Item("1", "Item1", 10, 2),
                new AntiFraud.Item("2", "Item2", 20, 3),
                new AntiFraud.Item("3", "Item3", 30, 4),
                new AntiFraud.Item("4", "Item4", 40, 5)
            };
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            var gate = new Gateway(1);
            var card = PersonRepository.GetCard("123456");

            var items = new AntiFraud.Item[]
            {
                new AntiFraud.Item("1", "Item1", 10, 2),
                new AntiFraud.Item("2", "Item2", 20, 3),
                new AntiFraud.Item("3", "Item3", 30, 4),
                new AntiFraud.Item("4", "Item4", 40, 5)
            };

            gate.MakeRequest(items, 1, card, 1);
        }