public void CreateNewGreeting() { var profileId = profileRepository.FindProfileId(profileReference); greetingRepository.DeleteGreeting(profileId); var greeting = new Greeting { Id = string.Empty, ProfileId = profileId, GreetingTitle = "Michael Quinn", GreetingMessage = "full stack software developer", SiteInfo = "Using this site to explore ASP.NET 5, Web API 2.2 in 4.6, Visual Studio 2015, AngularJs, MongoDB. UI is a Bootstrap wrapper called Cvilized I found on the wrapbootstap.com marketplace. Git source. Hosted in Azure." }; greetingRepository.SaveGreeting(greeting); var results = greetingRepository.GetGreeting(profileId); Assert.AreEqual(greeting.ProfileId, results.ProfileId); }
public void SaveGreeting(Greeting greeting) { _dataContext.Save(greeting); }