//[TestMethod] public async Task GetCalendarListFixture() { var cb = new CalendarBusiness(); var sut = await cb.GetCalendarList(); sut.Items.Should().HaveCount(c => c > 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)); }
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); }