Esempio n. 1
0
 public WalletController(IFinancialService financialService, IUserService userService, IBankService bankService, IDocService docService)
 {
     _financialService = financialService;
     _userService      = userService;
     _bankService      = bankService;
     _docService       = docService;
 }
Esempio n. 2
0
 public DocController(IDocService docService, IDocCatService docCatService)
 {
     this.DocService = docService;
     this.DocCatService = docCatService;
     this.AddDisposableObject(docService);
     this.AddDisposableObject(DocCatService);
 }
Esempio n. 3
0
 // GET: MatchingBonus
 public MatchingBonusController(IUserService userService, IInvestmentService investmentService, IFinancialService financialService, IDocService docService)
 {
     _userService       = userService;
     _investmentService = investmentService;
     _financialService  = financialService;
     _docService        = docService;
 }
Esempio n. 4
0
 public DocsController(
     IDocService docService,
     IMapper mapper)
 {
     _service = docService;
     _mapper  = mapper;
 }
Esempio n. 5
0
 /// <inheritdoc />
 public ContactController(IHttpContextAccessor httpContextAccessor, IContactService contactService, ILogger <ContactController> logger,
                          IDocService docService, ILocationRepository locationRepository, ICellGroupRepository cellGroupRepository)
 {
     _contactService      = contactService;
     _logger              = logger;
     _locationRepository  = locationRepository;
     _cellGroupRepository = cellGroupRepository;
 }
Esempio n. 6
0
 /// <inheritdoc />
 public CellGroupController(IHttpContextAccessor httpContextAccessor, ICellGroupRepository repository, ILogger <CellGroupController> logger,
                            IDocService docService, IMapper mapper)
 {
     _httpContextAccessor = httpContextAccessor;
     _repository          = repository;
     _logger     = logger;
     _docService = docService;
     _mapper     = mapper;
 }
Esempio n. 7
0
 /// <summary>
 /// Controller for addresses
 /// </summary>
 public DocController(IHttpContextAccessor httpContextAccessor, IDocRepository repository,
                      IMapper mapper, ILogger <DocController> logger, IDocService docService)
 {
     _httpContextAccessor = httpContextAccessor;
     _repository          = repository;
     _logger     = logger;
     _docService = docService;
     Directory.CreateDirectory(DocStore);
 }
Esempio n. 8
0
 /// <inheritdoc />
 public LocationController(IHttpContextAccessor httpContextAccessor, ILocationRepository repository, ILogger <LocationController> logger,
                           IDocService docService, IMapper mapper, IContactService contactService)
 {
     _httpContextAccessor = httpContextAccessor;
     _repository          = repository;
     _logger         = logger;
     _docService     = docService;
     _mapper         = mapper;
     _contactService = contactService;
 }
        public MainViewModel(ILibraryScrapper libraryScrapper, IDocService docService)
        {
            _libraryScrapper = libraryScrapper;
            _docService      = docService;

            Swatches = new SwatchesProvider().Swatches;

            Messenger.Default.Register <NotificationMessage <LogMessange> >(this, ProcessLogMessage);
            Messenger.Default.Register <NotificationMessage <ProgressMessange> >(this, ProcessProgressMessage);

            InitData();
        }
Esempio n. 10
0
 public ProjectRegistrationDocumentService(
     IMarkRepo markRepo,
     IAttachedDocRepo attachedDocRepo,
     IConstructionRepo constructionRepo,
     IStandardConstructionRepo standardConstructionRepo,
     IConstructionElementRepo constructionElementRepo,
     IDocService docService,
     IAdditionalWorkService additionalWorkService)
 {
     _markRepo                 = markRepo;
     _attachedDocRepo          = attachedDocRepo;
     _constructionRepo         = constructionRepo;
     _standardConstructionRepo = standardConstructionRepo;
     _constructionElementRepo  = constructionElementRepo;
     _docService               = docService;
     _additionalWorkService    = additionalWorkService;
 }
 public DocsController(IDocService docService, ILogger <DocsController> logger, IMapper mapper)
 {
     this.docService = docService;
     this.logger     = logger;
     this.mapper     = mapper;
 }
Esempio n. 12
0
 public ReturnManagerController(IInvestmentService investmentService, IFinancialService financialService, IDocService docService) : base()
 {
     _investmentService = investmentService;
     _financialService  = financialService;
     _docService        = docService;
 }
Esempio n. 13
0
 public IndexController(IDocService docService, ILogger <IndexController> logger)
 {
     _docService = docService;
     _logger     = logger;
 }
Esempio n. 14
0
 public InvoiceController(IDocService docService)
 {
     this._docService = docService;
 }
Esempio n. 15
0
 public FinancialService(IUnitOfWork uow, IDocService docService)
 {
     _uow        = uow;
     _docService = docService;
 }
Esempio n. 16
0
 public DocController(IDocService docService)
 {
     _docService = docService;
 }
Esempio n. 17
0
        public DocServiceTest()
        {
            // Arrange
            foreach (var doc in TestData.docs)
            {
                _docs.Add(new Doc
                {
                    Id         = doc.Id,
                    Mark       = doc.Mark,
                    Num        = doc.Num,
                    Type       = doc.Type,
                    Name       = doc.Name,
                    Form       = doc.Form,
                    Creator    = doc.Creator,
                    Inspector  = doc.Inspector,
                    NormContr  = doc.NormContr,
                    ReleaseNum = doc.ReleaseNum,
                    NumOfPages = doc.NumOfPages,
                    Note       = doc.Note,
                });
            }
            foreach (var doc in _docs)
            {
                _repository.Setup(mock =>
                                  mock.GetById(doc.Id)).Returns(
                    _docs.SingleOrDefault(v => v.Id == doc.Id));
            }
            foreach (var mark in TestData.marks)
            {
                _mockMarkRepo.Setup(mock =>
                                    mock.GetById(mark.Id)).Returns(
                    TestData.marks.SingleOrDefault(v => v.Id == mark.Id));

                foreach (var docType in TestData.docTypes)
                {
                    _repository.Setup(mock =>
                                      mock.GetAllByMarkIdAndDocType(mark.Id, docType.Id)).Returns(
                        _docs.Where(
                            v => v.Mark.Id == mark.Id && v.Type.Id == docType.Id));

                    _repository.Setup(mock =>
                                      mock.GetAllByMarkIdAndNotDocType(mark.Id, docType.Id)).Returns(
                        _docs.Where(
                            v => v.Mark.Id == mark.Id && v.Type.Id != docType.Id));
                }
            }
            foreach (var employee in TestData.employees)
            {
                _mockEmployeeRepo.Setup(mock =>
                                        mock.GetById(employee.Id)).Returns(
                    TestData.employees.SingleOrDefault(v => v.Id == employee.Id));
            }
            foreach (var docType in TestData.docTypes)
            {
                _mockDocTypeRepo.Setup(mock =>
                                       mock.GetById(docType.Id)).Returns(
                    TestData.docTypes.SingleOrDefault(v => v.Id == docType.Id));
            }

            _repository.Setup(mock =>
                              mock.Add(It.IsAny <Doc>())).Verifiable();
            _repository.Setup(mock =>
                              mock.Update(It.IsAny <Doc>())).Verifiable();
            _repository.Setup(mock =>
                              mock.Delete(It.IsAny <Doc>())).Verifiable();

            _service = new DocService(
                _repository.Object,
                _mockMarkRepo.Object,
                _mockEmployeeRepo.Object,
                _mockDocTypeRepo.Object);
        }
Esempio n. 18
0
 public DocumentController(IDocService service)
 {
     _service = service;
 }