public void Not_Add_A_Blog_Post_That_Already_Has_An_Id()
        {
            BlogPostToAdd.Id = 123;

            Target.Add(BlogPostToAdd.AsEnumerable());

            Context.BlogPosts.ShouldNotContain(BlogPostToAdd);
        }
        public void Match_The_Post_To_A_Blog_By_Matching_CompanyName()
        {
            Target.Add(BlogPostToAdd.AsEnumerable());

            Context.BlogPosts.ShouldContain(bp => bp.Blog == BlogInTheDatabase);
        }
        public void Save_Changes_To_The_Context()
        {
            Target.Add(BlogPostToAdd.AsEnumerable());

            Context.Assert(ctx => ctx.SaveChanges(), Occurs.Once());
        }
        public void Add_Passed_In_BlogPosts()
        {
            Target.Add(BlogPostToAdd.AsEnumerable());

            Context.BlogPosts.ShouldContain(BlogPostToAdd);
        }
        public void Match_The_Post_To_An_Author_By_Matching_First_Name()
        {
            Target.Add(BlogPostToAdd.AsEnumerable());

            Context.BlogPosts.ShouldContain(bp => bp.Author == AuthorInTheDatabase);
        }