Exemplo n.º 1
0
 public GiveawayObserver(IRepository <Giveaway> giveaway, DiscordSocketClient client, IEmbedFactory embedFactory)
 {
     _giveaway     = giveaway ?? throw new ArgumentNullException(nameof(giveaway));
     _client       = client ?? throw new ArgumentNullException(nameof(client));
     _embedFactory = embedFactory ?? throw new ArgumentNullException(nameof(embedFactory));
 }
Exemplo n.º 2
0
 public GiveawayService(IRepository <Giveaway> giveaway, IGiveawayFactory giveawayFactory, IEmbedFactory embedFactory)
 {
     _giveaway        = giveaway ?? throw new ArgumentNullException(nameof(giveaway));
     _giveawayFactory = giveawayFactory ?? throw new ArgumentNullException(nameof(giveawayFactory));
     _embedFactory    = embedFactory ?? throw new ArgumentNullException(nameof(embedFactory));
 }