Esempio n. 1
0
        public async Task <IEnumerable <ICategoriesResponse> > GetEventCategories()
        {
            var request = new EventCategoriesRequest();

            request.Lang    = _culture;
            request.OrderBy = CategoryOrderBy.Name;
            var res = await request.ExecuteAsync();

            return(res);
        }
        public async Task should_get_event_categories()
        {
            var request = new EventCategoriesRequest();

            request.Lang    = "ru";
            request.OrderBy = CategoryOrderBy.Name;

            //then
            var res = await request.ExecuteAsync();

            var first = res.First();

            Assert.IsNotNull(first);
        }