コード例 #1
0
        public void GetAllPosts()
        {
            var  home                = new BlogController();
            User user                = new User("bob");
            var  startDate           = new DateTime(2013, 1, 1);
            var  endDate             = new DateTime(2014, 1, 1);
            IEnumerable <Post> posts = home.GetAllPosts(user);

            Assert.AreEqual(2, posts.Count());
        }