public void Update(Level level) { PlayerPrefs.SetInt("level", level.getLevel()); ExperienceRepository experienceRepository = new ExperienceRepository(); experienceRepository.Update(level.getExperience()); }
public ActionResult GetExperience(Experience e) { Experience experience = repository.Find(x => x.ID == e.ID); experience.Title = e.Title; experience.SubTitle = e.SubTitle; experience.Date = e.Date; experience.Description = e.Description; repository.Update(experience); return(RedirectToAction("Index")); }
public void ExperienceRepository_Update_Works() { var guid = Guid.NewGuid(); ExperienceEntity entity = new ExperienceEntity(); var mockXml = new Mock <IExperienceXMLService>(); var repos = new ExperienceRepository(mockXml.Object, new VitaeNinjectKernel()); repos.Update(guid, entity); Assert.IsTrue(true); }