public void can_store_a_valid_found_link() { // arrange var repository = new StoredLinkRepository(); var linkToStore = new StoredLink() { Value = "http://google.com", }; // act var result = repository.Save(linkToStore); // assert Assert.That(repository.Get(result), Is.Not.Null); }
public void can_getall_links() { // arrange var repository = new StoredLinkRepository(); var linkToStore = new StoredLink() { Value = "http://google.com", }; repository.Save(linkToStore); // act var result = repository.GetAll(); // assert Assert.That(result.Count(), Is.GreaterThan(0)); }