Пример #1
0
        public void Should_get_balance()
        {
            var schwabClient = new SchwabClient();
            var balance = schwabClient.GetAvailableBalance();

            Assert.IsNotNull(balance);
        }
        public bool Run()
        {
            bool success = false;
            var schwabClient = new SchwabClient();
            var schwabBalance = schwabClient.GetAvailableBalance();

            var citi = new CitiClient();
            var citiBalance = citi.GetCurrentBalance();

            var data = FormatMessage(schwabBalance, citiBalance);

            var emailSender = new EmailSender();
            success = emailSender.SendEmail(data);

            return success;
        }