Пример #1
0
 protected Voucher(IDictionary <Match, int> matches, int tax, Bookmaker bookmaker, int cash)
 {
     CashIn    = cash;
     Matches   = matches;
     Id        = Guid.NewGuid();
     Tax       = tax;
     Bookmaker = bookmaker;
 }
Пример #2
0
 public static Voucher Create(IDictionary <Match, int> matches, int tax, Bookmaker SportsBetting, int cash)
 => new Voucher(matches, tax, SportsBetting, cash);