public void Returns_empty_string_when_no_about_text_exists() { var retriever = new RavenAboutInfoRetriever(Session); var returnedInfo = retriever.GetAboutInfo(); Assert.That(returnedInfo.AboutText, Is.EqualTo(string.Empty)); }
public void Defaulats_things_i_like_urls_to_emtpy_collection() { var retriever = new RavenAboutInfoRetriever(Session); var returnedInfo = retriever.GetAboutInfo(); Assert.That(returnedInfo.ThingsILikeUrls.Count(), Is.EqualTo(0)); }
public void Retrieves_about_text() { var aboutText = "Hello sir. How are you?"; var info = new AboutInfo(aboutText, Enumerable.Empty<string>()); Session.Store(info); Session.SaveChanges(); var retriever = new RavenAboutInfoRetriever(Session); var returnedInfo = retriever.GetAboutInfo(); Assert.That(returnedInfo.AboutText, Is.EqualTo(aboutText)); }