public PartInvoiceController(ICustomerRepositoryDB _CustomerRepository,
                              IPartInvoiceRepositoryDB _PartInvoiceRepository,
                              IPartAvailabilityService _PartAvailabilityService)
 {
     CustomerRepository      = _CustomerRepository;
     PartInvoiceRepository   = _PartInvoiceRepository;
     PartAvailabilityService = _PartAvailabilityService;
 }
 //internal constructor visible to PinnacleSample.Test
 //provides DI capabilities for tests to mock the dependecies.
 internal PartInvoiceController(ICustomerRepositoryDB customerRepository, IPartInvoiceRepositoryDB partInvoiceRepository, IPartAvailabilityServiceFactory partAvailabilityServiceFactory)
 {
     _CustomerRepository             = customerRepository;
     _PartInvoiceRepository          = partInvoiceRepository;
     _PartAvailabilityServiceFactory = partAvailabilityServiceFactory;
 }
 public PartInvoiceController(IIoC ioc)
 {
     __CustomerRepositoryDB     = ioc.Resolve <ICustomerRepositoryDB>();
     __PartInvoiceRepositoryDB  = ioc.Resolve <IPartInvoiceRepositoryDB>();
     __IPartAvailabilityService = ioc.Resolve <Services.PartAvailabilityService.IPartAvailabilityService>();
 }