コード例 #1
0
 public CustomersController(
     ICustomersQuery customersquery,
     ICustomersCommand customerCommand,
     ICustomersFactory customerFactory,
     IResponseFormatFactory responseFactory,
     ILogger <CustomersController> logger
     )
 {
     _query           = customersquery;
     _command         = customerCommand;
     _factory         = customerFactory;
     _responseFactory = responseFactory;
     _logger          = logger;
 }
コード例 #2
0
        public WorkOrdersController(IWorkOrdersCommand commands,
                                    IWorkOrdersFactory factory,
                                    IWorkOrdersQuery query,
                                    IResponseFormatFactory resposeFactory,
                                    IEmployeesQuery employeeQuery,
                                    ILogger <WorkOrdersController> logger,
                                    ISalesOrderQuery salesQuery)
        {
            _command    = commands;
            _query      = query;
            _factory    = factory;
            _response   = resposeFactory;
            _salesQuery = salesQuery;
            _logger     = logger;

            _employeeQuery = employeeQuery;
        }