Exemple #1
0
 /// <summary>
 /// takes in a provider and assigns global provider variable to that provider
 /// </summary>
 /// <param name="provider"></param>
 /// <param name="context"></param>
 public QuoteController(RandomQuoteProvider provider, QuotableContext context)
 {
     Provider = provider;
     _context = context;
 }
Exemple #2
0
 /// <summary>
 /// assigns global provider to passed in provider
 /// </summary>
 /// <param name="provider"></param>
 public RandomController(RandomQuoteProvider provider)
 {
     Provider = provider;
 }