public CompanyServiceProvider(ICompanyUnitOfWork companyUnitOfWork, ITimeStamper timeStamper)
        {
            if(companyUnitOfWork == null) { throw new ArgumentNullException("companyUnitOfWork"); }
            _companyUnitOfWork = companyUnitOfWork;

            if(timeStamper == null) { throw new ArgumentNullException("timeStamper"); }
            _timeStamper = timeStamper;
        }
Exemplo n.º 2
0
        public InventoryServiceProvider(IInventoryUnitOfWork inventoryUnitOfWork, ITimeStamper timeStamper)
        {
            if (inventoryUnitOfWork == null)
            {
                throw new ArgumentNullException("inventoryUnitOfWork");
            }
            _inventoryUnitOfWork = inventoryUnitOfWork;

            if (timeStamper == null)
            {
                throw new ArgumentNullException("timeStamper");
            }
            _timeStamper = timeStamper;
        }
Exemplo n.º 3
0
        public MaterialsServiceProvider(IMaterialsReceivedUnitOfWork materialsReceivedUnitOfWork, ITimeStamper timeStamper)
        {
            if (materialsReceivedUnitOfWork == null)
            {
                throw new ArgumentNullException("materialsReceivedUnitOfWork");
            }
            _materialsReceivedUnitOfWork = materialsReceivedUnitOfWork;

            if (timeStamper == null)
            {
                throw new ArgumentNullException("timeStamper");
            }
            _timeStamper = timeStamper;
        }
        public IntraWarehouseOrderServiceProvider(IIntraWarehouseOrderUnitOfWork intraWarehouseOrderUnitOfWork, ITimeStamper timeStamper)
        {
            if (intraWarehouseOrderUnitOfWork == null)
            {
                throw new ArgumentNullException("intraWarehouseOrderUnitOfWork");
            }
            _intraWarehouseOrderUnitOfWork = intraWarehouseOrderUnitOfWork;

            if (timeStamper == null)
            {
                throw new ArgumentNullException("timeStamper");
            }
            _timeStamper = timeStamper;
        }
Exemplo n.º 5
0
        public LotServiceProvider(ILotUnitOfWork lotUnitOfWork, ITimeStamper timeStamper)
        {
            if (lotUnitOfWork == null)
            {
                throw new ArgumentNullException("lotUnitOfWork");
            }
            if (timeStamper == null)
            {
                throw new ArgumentNullException("timeStamper");
            }

            _lotUnitOfWork = lotUnitOfWork;
            _timeStamper   = timeStamper;
        }
        public FacilityServiceProvider(IFacilityUnitOfWork facilityUnitOfWork, ITimeStamper timeStamper)
        {
            if (facilityUnitOfWork == null)
            {
                throw new ArgumentNullException("facilityUnitOfWork");
            }
            if (timeStamper == null)
            {
                throw new ArgumentNullException("timeStamper");
            }

            _facilityUnitOfWork = facilityUnitOfWork;
            _timeStamper        = timeStamper;
        }
Exemplo n.º 7
0
        public TreatmentOrderServiceProvider(IInventoryShipmentOrderUnitOfWork inventoryShipmentOrderUnitOfWork, ITimeStamper timeStamper)
        {
            if (inventoryShipmentOrderUnitOfWork == null)
            {
                throw new ArgumentNullException("inventoryShipmentOrderUnitOfWork");
            }
            if (timeStamper == null)
            {
                throw new ArgumentNullException("timeStamper");
            }

            _inventoryShipmentOrderUnitOfWork = inventoryShipmentOrderUnitOfWork;
            _timeStamper = timeStamper;
        }
Exemplo n.º 8
0
        public ProductServiceProvider(IProductUnitOfWork productUnitOfWork, ITimeStamper timeStamper)
        {
            if (productUnitOfWork == null)
            {
                throw new ArgumentNullException("productUnitOfWork");
            }
            _productUnitOfWork = productUnitOfWork;

            if (timeStamper == null)
            {
                throw new ArgumentNullException("timeStamper");
            }
            _timeStamper = timeStamper;
        }
        public MillAndWetdownServiceProvider(IProductionUnitOfWork productionUnitOfWork, ITimeStamper timeStamper)
        {
            if (productionUnitOfWork == null)
            {
                throw new ArgumentNullException("productionUnitOfWork");
            }
            if (timeStamper == null)
            {
                throw new ArgumentNullException("timeStamper");
            }

            _productionUnitOfWork = productionUnitOfWork;
            _timeStamper          = timeStamper;
        }
        public NotebookServiceProvider(INotebookUnitOfWork notebookUnitOfWork, ITimeStamper timeStamper)
        {
            if (notebookUnitOfWork == null)
            {
                throw new ArgumentNullException("notebookUnitOfWork");
            }
            _notebookUnitOfWork = notebookUnitOfWork;

            if (timeStamper == null)
            {
                throw new ArgumentNullException("timeStamper");
            }
            _timeStamper = timeStamper;
        }
        public ProductionResultsProvider(IProductionUnitOfWork productionUnitOfWork, ITimeStamper timeStamper)
        {
            if (productionUnitOfWork == null)
            {
                throw new ArgumentNullException("productionUnitOfWork");
            }
            if (timeStamper == null)
            {
                throw new ArgumentNullException("timeStamper");
            }

            _productionUnitOfWork = productionUnitOfWork;
            _timeStamper          = timeStamper;
        }
Exemplo n.º 12
0
        public SampleOrderServiceProvider(ISampleOrderUnitOfWork sampleOrderUnitOfWork, ITimeStamper timeStamper)
        {
            if (sampleOrderUnitOfWork == null)
            {
                throw new ArgumentNullException("sampleOrderUnitOfWork");
            }
            if (timeStamper == null)
            {
                throw new ArgumentNullException("timeStamper");
            }

            _sampleOrderUnitOfWork = sampleOrderUnitOfWork;
            _timeStamper           = timeStamper;
        }
 protected InterlockUpdatableSigningKey(InterlockUpdatableSigningKeyData tag, ITimeStamper timeStamper)
 {
     _data        = tag.Required();
     _timeStamper = timeStamper.Required();
     _data.LastSignatureTimeStamp = _timeStamper.Now;
 }
 public TimeResponseFormatter(ITimeStamper timeStamper)
 {
     stamper = timeStamper;
 }
Exemplo n.º 15
0
 public RSAInterlockUpdatableSigningKey(InterlockUpdatableSigningKeyData tag, byte[] decrypted, ITimeStamper timeStamper) : base(tag, timeStamper)
 {
     using var ms   = new MemoryStream(decrypted);
     _keyParameters = ms.Decode <TagRSAParameters>();
 }
Exemplo n.º 16
0
 public TimeResponseFormatter(ITimeStamper stamper)
 {
     _stamper = stamper;
 }
 public SigningContext(InterlockSigningKey key, ITimeStamper timeStamper)
 {
     Key         = key.Required();
     TimeStamper = timeStamper.Required();
 }