public void should_get_sermons_by_series()
        {
            ICollection <Sermon> _results = new List <Sermon>();
            Exception            _ex      = new Exception();
            ManualResetEvent     done     = new ManualResetEvent(false);
            string SeriesId = string.Empty;

            IGatewayService sut = new GatewayService();

            sut.GetSeries((Series, ex) =>
            {
                foreach (var s in Series)
                {
                    SeriesId = s.Id;
                    break;
                }
                sut.GetSermonBySeries(SeriesId, (results, ex2) =>
                {
                    _ex      = ex2;
                    _results = results;
                    done.Set();
                });
            });

            done.WaitOne();

            Assert.IsNull(_ex);
            Assert.IsTrue(_results.Count > 0);
        }
        public void should_get_series_list()
        {
            ICollection <Series> _results = new List <Series>();
            Exception            _ex      = new Exception();
            ManualResetEvent     done     = new ManualResetEvent(false);

            IGatewayService sut = new GatewayService();

            sut.GetSeries((results, ex) =>
            {
                _ex      = ex;
                _results = results;
                done.Set();
            });

            done.WaitOne();
            Assert.IsNull(_ex);
            Assert.IsTrue(_results.Count > 0);
        }