Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SaveTransactionWrapper" /> class.
 /// </summary>
 /// <param name="transaction">transaction (required).</param>
 public SaveTransactionWrapper(SaveTransaction transaction = default(SaveTransaction))
 {
     // to ensure "transaction" is required (not null)
     if (transaction == null)
     {
         throw new InvalidDataException("transaction is a required property for SaveTransactionWrapper and cannot be null");
     }
     else
     {
         this.Transaction = transaction;
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SaveTransactionsWrapper" /> class.
 /// </summary>
 /// <param name="transaction">transaction.</param>
 /// <param name="transactions">transactions.</param>
 public SaveTransactionsWrapper(SaveTransaction transaction = default(SaveTransaction), List <SaveTransaction> transactions = default(List <SaveTransaction>))
 {
     this.Transaction  = transaction;
     this.Transactions = transactions;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SaveTransactionWrapper" /> class.
 /// </summary>
 /// <param name="transaction">transaction (required).</param>
 public SaveTransactionWrapper(SaveTransaction transaction = default(SaveTransaction))
 {
     // to ensure "transaction" is required (not null)
     this.Transaction = transaction ?? throw new ArgumentNullException("transaction is a required property for SaveTransactionWrapper and cannot be null");
 }