Example #1
0
        protected void RunBasicTest(string accountNumber, string url, Func <IBankovniPolozka[], IBankovniPolozka> referenceItemFinder)
        {
            var ucet = new SimpleBankovniUcet {
                CisloUctu = accountNumber, Url = url
            };
            var parser = new AutoParser(ucet);
            var actual = parser.GetPolozky(DateTime.Now.AddYears(-1)).ToArray();

            Assert.IsTrue(actual.Length > 0);

            var referenceItem = referenceItemFinder(actual);

            Assert.IsNotNull(referenceItem);
        }
Example #2
0
        public static void Start()
        {
            IBankovniUcet[] ucty = new SimpleBankovniUcet[]
            {
                new SimpleBankovniUcet()
                {
                    CisloUctu = "9711283001/5500",
                    Url       = "https://www.rb.cz/cs/o-nas/povinne-uverejnovane-informace/transparentni-ucty?mvcPath=transactions&accountNumber=9711283001"
                }
            };

            int num = 0;

            foreach (var ucet in ucty)
            {
                num++;
                Console.WriteLine(num + " ucet " + ucet.CisloUctu);
                var parser   = new Plugin.TransparetniUcty.AutoParser(ucet);
                var spolozky = parser.GetPolozky().ToArray();
            }
        }