Exemple #1
0
 public LunchService(IGetLunchOptions lunchOptions, IRepository repo, IChaos random, IRestaurantCache cache)
 {
     this.lunchOptions = lunchOptions ?? throw new ArgumentNullException("lunchOptions");
     this.random       = random ?? throw new ArgumentNullException("RandomService");
     this.repo         = repo ?? throw new ArgumentNullException("repo");
     this.cache        = cache ?? throw new ArgumentNullException("cache");
 }
 public UserSessionService(IRestaurantCache cache)
 {
     this.cache = cache;
 }
 public YelpService(string apiKey, IRestaurantCache cache)
 {
     this.apiKey = apiKey;
     this.cache  = cache;
 }