public PostService(iPostRepository postRepo) { //The type of JSN repositoty is injected repo = postRepo; }
public PostService(string postFile) { //The post service uses the JSN repository repo = new PostJsnRepository(postFile); }