I have made the pragmatic decision to have my repository serve as both a repository and a a severely thin service layer.
One method of the repository that I want to test is the Add method. It looks like this:
public void Add(Post post) { post.Slug = SlugConverter.Convert(post.Title); context.Posts.Add(post); context.SaveChanges(); } What I want to test in particular is that the Add method somehow updates the Slug property of the given post.
How should I go about testing this? I wonder how specific I should be given that the SlugConverter is already amply tested.