public void Get_Post_By_Id_Check() { Initialize(true); using (var repository = new NHibernateBlogService()) { var post = DummyLivePost(); repository.Save(post); var retrievedPost = repository.GetPostById(post.Id); Assert.AreEqual(post, retrievedPost); } }