Пример #1
0
        public void ChangeTitle()
        {
            Blog blog = blogRepository.GetFirstItem();

            Assert.IsNotNull(blog);
            Assert.AreEqual <string>("Scott Qian", blog.Title);

            blogApplicationImpl.ChangeTitle("Qian");

            blog = blogRepository.GetFirstItem();
            Assert.AreEqual <string>("Qian", blog.Title);

            blogApplicationImpl.ChangeTitle("Scott Qian");
        }
Пример #2
0
 public void ChangeTitle(String title)
 {
     try
     {
         blogApplicationImpl.ChangeTitle(title);
     }
     catch (Exception ex)
     {
         throw ApplicationFaultDetail.Create(ex);
     }
 }