Exemple #1
0
 public PurchaseService(IPurchaseRecordRepository purchaseRecordRepository)
 {
     if (purchaseRecordRepository == null)
     {
         throw new ArgumentNullException("purchaseRecordRepository");
     }
     _purchaseRecordRepository = purchaseRecordRepository;
 }
 public PurchaseService( IPurchaseRecordRepository purchaseRecordRepository )
 {
     if ( purchaseRecordRepository == null )
         throw new ArgumentNullException( "purchaseRecordRepository" );
     _purchaseRecordRepository = purchaseRecordRepository;
 }