Beispiel #1
0
        public void ChangeSubTitle()
        {
            Blog blog = blogRepository.GetFirstItem();

            Assert.IsNotNull(blog);
            Assert.AreEqual <string>(string.Empty, blog.SubTitle);

            blogApplicationImpl.ChangeSubTitle("test");
            blog = blogRepository.GetFirstItem();
            Assert.AreEqual <string>("test", blog.SubTitle);

            blogApplicationImpl.ChangeSubTitle(string.Empty);
            blog = blogRepository.GetFirstItem();
            Assert.AreEqual <string>(string.Empty, blog.SubTitle);
        }
Beispiel #2
0
 public void ChangeSubTitle(String subTitle)
 {
     try
     {
         blogApplicationImpl.ChangeSubTitle(subTitle);
     }
     catch (Exception ex)
     {
         throw ApplicationFaultDetail.Create(ex);
     }
 }