Exemple #1
0
 public CardService(IDatabaseRepository db = null, IScryfallRepository api = null)
 {
     _db  = db ?? new DatabaseRepository();
     _api = api ?? new ScryfallRepository();
 }
Exemple #2
0
 public ScryfallService(IApiRepository api       = null,
                        IScryfallRepository repo = null)
 {
     _api  = api ?? new ApiRepository();
     _repo = repo ?? new ScryfallRepository();
 }