Exemplo n.º 1
0
        //[TestMethod]
        public async Task GetCalendarListFixture()
        {
            var cb  = new CalendarBusiness();
            var sut = await cb.GetCalendarList();

            sut.Items.Should().HaveCount(c => c > 0);
        }
Exemplo n.º 2
0
        public virtual async Task <ActionResult> List(bool bust = false)
        {
            if (bust)
            {
                Cache.Remove("CalList");
            }
            var events = await Cache.GetOrSet("CalList", async() => await CalendarBusiness.GetCalendarList());

            return(Json(events, JsonRequestBehavior.AllowGet));
        }
Exemplo n.º 3
0
        public async Task GetCalendarListFixture()
        {
            var cb  = new CalendarBusiness();
            var sut = await cb.GetCalendarList();

            foreach (var x in sut.Items.OrderBy(o => o.Summary).ToList())
            {
                Console.WriteLine(x.Summary + ", " + x.Id);
            }
            sut.Items.Should().HaveCount(c => c > 0);
        }