public ActionResult Search(User model) { try { if (ModelState.IsValid) { var baseApiHelper = new BaseApiHelper(model.UserInformationUrl); model.GithubDetails = baseApiHelper.DownloadContentAndSerialize <GithubDetails>(); baseApiHelper.ApiUrl = model.RepoInformationUrl; model.GithubDetails.GithubRepositories = baseApiHelper.DownloadContentAndSerialize <List <GithubRepo> >(); } return(View("Index", model)); } catch { return(View("Index", model)); } }
public void TestSetUp() { this.apiHelper = new BaseApiHelper(); }