public void CreateProfileShouldMapCorrectly()
        {
            DeveloperProfileCreateViewModel model = new DeveloperProfileCreateViewModel();

            string url = "/Developers/CreateProfile";

            this.routeCollection.ShouldMap(url).To<DevelopersController>(c => c.CreateProfile(model));
        }
        public ActionResult CreateProfile(DeveloperProfileCreateViewModel model)
        {
            if (!this.ModelState.IsValid)
            {
                return this.View(model);
            }

            this.developers.Create(this.User.Identity.GetUserId(), model.GithubProfile, model.TopProjectsLinks);

            this.SetTempDataSuccessMessage("Developer profile created successfully!");

            return this.RedirectToAction("Index");
        }