public ContractorsController(IContractorService ContractorService,
                              ILoggerFactory loggerFactory
                              )
     : base(loggerFactory)
 {
     _ContractorService = ContractorService;
 }
Ejemplo n.º 2
0
 public ContactService(
     ILogger <ContactService> logger,
     IContractorService contractorService)
 {
     _contractorService = contractorService;
     _logger            = logger;
 }
Ejemplo n.º 3
0
        public ContractorController(IContractorService contractorService, IMapper mapper)
        {
            Guard.ThrowIfArgumentIsNull(contractorService, nameof(contractorService));
            Guard.ThrowIfArgumentIsNull(mapper, nameof(mapper));

            _contractorService = contractorService;
            _mapper            = mapper;
        }
Ejemplo n.º 4
0
 public ContractorController(
     IContractorService contractorService,
     IOrganizationRecruiter recruiter,
     IServiceProvider serviceProvider) : base(serviceProvider)
 {
     _contractorService = contractorService;
     _recruiter         = recruiter;
 }
Ejemplo n.º 5
0
 public LookupsController(IContractService contractService, ICategoryService categoryService,
                          IContractorService contractorService, IImageService imageService, IInventoryService inventoryService)
 {
     this.contractService   = contractService;
     this.categoryService   = categoryService;
     this.contractorService = contractorService;
     this.imageService      = imageService;
     this.inventoryService  = inventoryService;
 }
Ejemplo n.º 6
0
        public AddTransactionForm(IContractorService contractorService, ITransactionService transactionService, IRecycleBinService recycleBinService, string defaultContractorName = default)
        {
            InitializeComponent();

            _defaultContractorName = defaultContractorName;
            _contractorService     = contractorService;
            _transactionService    = transactionService;
            _recycleBinService     = recycleBinService;
        }
Ejemplo n.º 7
0
        public void Test()
        {
            _service = new ContractorService(_repository, _validator);

            var ex = Assert.Throws <ContractorNotValidException>(() => _service.AddContractor(new Contractor {
                Id = Guid.Empty
            }));

            Assert.Equal("Contractor id is not set.", ex.Message);
        }
 public ContractorController(IContractorService contractService, IProjectService projectService,
                             IEmployeeService empService, IDropDownSubCategoryService subCategoryService,
                             IVendorService vendorService)
 {
     this.contractService    = contractService;
     this.projectService     = projectService;
     this.empService         = empService;
     this.subCategoryService = subCategoryService;
     this.vendorService      = vendorService;
 }
Ejemplo n.º 9
0
 public PotentialContractorsService(IContractorService contractorService) => _contractorService = contractorService;
 public ContractorController(IContractorService contractorService)
 {
     _contractorService = contractorService;
 }
 public ContractorServiceTests()
 {
     _service = new ContractorService(_iRepo.Object);
 }
Ejemplo n.º 12
0
 public ContractorControllerTest()
 {
     _validator  = new AddContractorValidator();
     _repository = new InMemoryContractorRepository();
     _service    = new ContractorService(_repository, _validator);
 }
Ejemplo n.º 13
0
 public ContractorsController(IContractorService contractorService)
 {
     this.contractorService = contractorService;
 }
Ejemplo n.º 14
0
 public ContractorController(IRequestService reqService, ILocationService locService, IContractorService contractorService)
 {
     _requestService    = reqService;
     _locationService   = locService;
     _contractorService = contractorService;
 }
Ejemplo n.º 15
0
 public ContractorController(IContractor principal, IContractorService service)
 {
     _service   = service;
     _principal = principal;
 }