public void Shows_current_about_text_and_things_i_like_urls_when_viewing() { var aboutText = "Hello. I am your friend."; var thingsILikeUrls = new List<string> { "http://www.blah.com", "http://www.planetf1.com" }; retriever.Stub(r => r.GetAboutInfo()).Return(new AboutInfo(aboutText, thingsILikeUrls)); var result = new UpdateEndpoint(updater, retriever).Get(new AboutRequestModel()); Assert.That(result.AboutText_BigText, Is.EqualTo(aboutText)); Assert.That(result.ThingsILikeUrls.ToStrings(), Is.EqualTo(thingsILikeUrls)); }
public void Redirects_to_public_facing_about_page() { var result = new UpdateEndpoint(updater, retriever).Post(new AboutUpdateModel()); result.AssertWasRedirectedTo<ViewEndpoint>(x => x.Get(new AboutLinkModel())); }