public ComicMailBuilder( DateTime now, IConfigurationSource configurationSource, IComicFetcher comicFetcher, ILogger log) { this.now = now; this.configurationSource = configurationSource; this.comicFetcher = comicFetcher; this.log = log; }
public Comic GetComic(string name, IComicFetcher comicFetcher) { if (name == "dilbert") { return(new DilbertComic(comicFetcher)); } if (name == "blondie" || name == "rhymes-with-orange") { return(new ComicsKingdomComic(name, comicFetcher)); } return(new GoComic(name, comicFetcher)); }
protected Comic(IComicFetcher comicFetcher) { this.comicFetcher = comicFetcher; }
public GoComic(string name, IComicFetcher comicFetcher) : base(comicFetcher) { this.name = name; }
public ComicsKingdomComic(string name, IComicFetcher comicFetcher) : base(comicFetcher) { this.name = name; }
public DilbertComic(IComicFetcher comicFetcher) : base(comicFetcher) { }