private static void RequestReport(string url) { var response = ApiCaller.Get <PassSalesResponse>(url); ScenarioCache.StoreResponse(response); ScenarioCache.Store(ModelKeys.PassSalesReport, response.Data); }
public void WhenThePassIsUpdated() { var updatedPass = ScenarioCache.Get <PassModel>(_updatedPassKey); var restResponse = ApiCaller.Put <ActionReponse <PassModel> >(updatedPass, Routes.GetById("passes", updatedPass.Id)); ScenarioCache.StoreResponse(restResponse); }
public void WhenTheRatesForAllTeachersAreRequested() { var url = Routes.TeacherRates; var response = ApiCaller.Get <List <TeacherRateModel> >(url); ScenarioCache.StoreResponse(response); ScenarioCache.Store(ModelKeys.TeacherRate, response.Data); }
public void WhenTheBlockDetailsReportIsRequested() { var blockId = ScenarioCache.GetId(ModelIdKeys.BlockId); var url = Routes.GetBlockDetailsReport(blockId); var response = ApiCaller.Get <BlockDetailsResponse>(url); ScenarioCache.StoreResponse(response); ScenarioCache.Store(ModelKeys.BlockDetailsReport, response.Data); }
public void WhenBlocksForEnrolmentIsRequested() { var response = ApiCaller.Get <List <BlockForRegistrationModel> >(Routes.BlocksForEnrolment); ScenarioCache.StoreResponse(response); }
public void WhenTheUserIsDeleted() { var response = ApiCaller.Delete <UserModel>(Routes.GetById(Routes.Users, ScenarioCache.GetUserId())); ScenarioCache.StoreResponse(response); }
public void WhenUpcomingStatndAloneEventsAreRequested() { var response = ApiCaller.Get <List <EventForRegistrationModel> >(Routes.StandAloneEventsForRegistration); ScenarioCache.StoreResponse(response); }