public void FindByIdTest() { BlogRepository repo = new BlogRepository(); Blog blog = repo.FindById(1); Assert.AreEqual(blog.Title, "My Blog"); }
static void Main(string[] args) { var blogs = new BlogRepository(null); Console.WriteLine(blogs.FindById(1).Title); }