Esempio n. 1
0
 public ComicMailBuilder(
     DateTime now,
     IConfigurationSource configurationSource,
     IComicFetcher comicFetcher,
     ILogger log)
 {
     this.now = now;
     this.configurationSource = configurationSource;
     this.comicFetcher        = comicFetcher;
     this.log = log;
 }
Esempio n. 2
0
        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));
        }
Esempio n. 3
0
 protected Comic(IComicFetcher comicFetcher)
 {
     this.comicFetcher = comicFetcher;
 }
Esempio n. 4
0
 public GoComic(string name, IComicFetcher comicFetcher) : base(comicFetcher)
 {
     this.name = name;
 }
 public ComicsKingdomComic(string name, IComicFetcher comicFetcher)
     : base(comicFetcher)
 {
     this.name = name;
 }
Esempio n. 6
0
 public DilbertComic(IComicFetcher comicFetcher)
     : base(comicFetcher)
 {
 }