public void then_if_the_blog_does_not_exist_exception_is_thrown()
 {
     var expected = "The blog couldn't be found";
     this._blog = new Blog(Guid.NewGuid(), "name", "url");
     this.Execute();
     this._errorMessage.ShouldEqual(expected);
 }
        protected void CreateItems(int blogsToCreate, bool withDelay = false)
        {
            for (var i = 1; i < (blogsToCreate + 1); i++)
            {
                var item = new Blog(Guid.NewGuid(), i.ToString(), string.Format("www.{0}.com", i));
                this._repository.Create(item);

                if (withDelay)
                    Thread.Sleep(1000);
            }
        }
 public void then_a_blog_can_be_updated()
 {
     var newName = "New name";
     var newUrl = "www.newurl.com";
     base.CreateItems(1);
     this._blog = base._dbContext.Blogs.FirstOrDefault();
     this._blog.SetName(newName);
     this._blog.SetUrl(newUrl);
     this.Execute();
     this._blog.Name.ShouldEqual(newName);
     this._blog.Url.ShouldEqual(newUrl);
 }