public async Task GetScheduleForGroup() { const string testGroup = "ИКБО-24-20"; var actualSchedule = await _mireaApiClient.GetFullScheduleForGroup(testGroup); Assert.NotNull(actualSchedule.FirstWeek); Assert.NotNull(actualSchedule.SecondWeek); }
public async Task <ApiFullScheduleResponse> GetFullSchedule(string group) { var timeUpdated = _settings.CacheUpdateInterval; Func <Task <ApiFullScheduleResponse> > dataSource = () => _mireaApiClient.GetFullScheduleForGroup(group); var schedule = await LocalCacheProvider.GetAsync(LocalCacheHelper.GroupScheduleCacheKey(group), dataSource, timeUpdated); return(schedule); }