public WalletController(IFinancialService financialService, IUserService userService, IBankService bankService, IDocService docService) { _financialService = financialService; _userService = userService; _bankService = bankService; _docService = docService; }
public DocController(IDocService docService, IDocCatService docCatService) { this.DocService = docService; this.DocCatService = docCatService; this.AddDisposableObject(docService); this.AddDisposableObject(DocCatService); }
// GET: MatchingBonus public MatchingBonusController(IUserService userService, IInvestmentService investmentService, IFinancialService financialService, IDocService docService) { _userService = userService; _investmentService = investmentService; _financialService = financialService; _docService = docService; }
public DocsController( IDocService docService, IMapper mapper) { _service = docService; _mapper = mapper; }
/// <inheritdoc /> public ContactController(IHttpContextAccessor httpContextAccessor, IContactService contactService, ILogger <ContactController> logger, IDocService docService, ILocationRepository locationRepository, ICellGroupRepository cellGroupRepository) { _contactService = contactService; _logger = logger; _locationRepository = locationRepository; _cellGroupRepository = cellGroupRepository; }
/// <inheritdoc /> public CellGroupController(IHttpContextAccessor httpContextAccessor, ICellGroupRepository repository, ILogger <CellGroupController> logger, IDocService docService, IMapper mapper) { _httpContextAccessor = httpContextAccessor; _repository = repository; _logger = logger; _docService = docService; _mapper = mapper; }
/// <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); }
/// <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(); }
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; }
public ReturnManagerController(IInvestmentService investmentService, IFinancialService financialService, IDocService docService) : base() { _investmentService = investmentService; _financialService = financialService; _docService = docService; }
public IndexController(IDocService docService, ILogger <IndexController> logger) { _docService = docService; _logger = logger; }
public InvoiceController(IDocService docService) { this._docService = docService; }
public FinancialService(IUnitOfWork uow, IDocService docService) { _uow = uow; _docService = docService; }
public DocController(IDocService docService) { _docService = docService; }
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); }
public DocumentController(IDocService service) { _service = service; }