public SampleOrderReportingService(ISampleOrderService sampleOrderService)
 {
     if (sampleOrderService == null)
     {
         throw new ArgumentNullException("sampleOrderService");
     }
     _sampleOrderService = sampleOrderService;
 }
示例#2
0
        public SampleRequestsController(ISampleOrderService customerService, IUserIdentityProvider userIdentityProvider)
        {
            if (customerService == null)
            {
                throw new ArgumentNullException("customerService");
            }
            if (userIdentityProvider == null)
            {
                throw new ArgumentNullException("userIdentityProvider");
            }

            _sampleOrderService   = customerService;
            _userIdentityProvider = userIdentityProvider;
        }