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