Пример #1
0
 public HomeService(
     IUnitOfwork unitOfWork,
     IMapper mapper)
 {
     _unitOfWork = unitOfWork;
     _mapper     = mapper;
 }
Пример #2
0
 public AccountService(SignInManager <IdentityUser> signInManager,
                       UserManager <IdentityUser> userManager, IHttpContextAccessor httpContextAccessor, IUnitOfwork unitOfWork)
 {
     _userManager         = userManager;
     _signInManager       = signInManager;
     _httpContextAccessor = httpContextAccessor;
     _unitOfWork          = unitOfWork;
 }
Пример #3
0
 public AdminService(
     IUnitOfwork unitOfWork,
     IMapper mapper,
     ICreateHolesCalculation createHolesCalcultion)
 {
     _unitOfWork            = unitOfWork;
     _mapper                = mapper;
     _createHolesCalcultion = createHolesCalcultion;
 }
Пример #4
0
 public PhotoController(IWebHostEnvironment host,
                        IVehicleRepository repository, IUnitOfwork unitOfwork, IMapper mapper,
                        IOptionsSnapshot <PhotoSettings> options)
 {
     this.photoSettings = options.Value;
     this.host          = host;
     this.repository    = repository;
     this.unitOfwork    = unitOfwork;
     this.mapper        = mapper;
 }
Пример #5
0
 public CoursePageService(
     IUnitOfwork unitOfWork,
     IMapper mapper,
     IScoreCardCalculation scoreCardCalculation,
     IAccountService accountService)
 {
     _mapper = mapper;
     _scoreCardCalculation = scoreCardCalculation;
     _accountService       = accountService;
     _unitOfWork           = unitOfWork;
 }
Пример #6
0
 public VideoManagementAppService(IVideoManagementRepository videoManagementRepository,
                                  IMail mail,
                                  ITransferArchiveControlRepository transferArchiveControlRepository,
                                  IUnitOfwork unitOfwork,
                                  IMapper mapper)
 {
     _videoManagementRepository = videoManagementRepository;
     _mail = mail;
     _transferArchiveControlRepository = transferArchiveControlRepository;
     _unitOfwork = unitOfwork;
     _mapper     = mapper;
 }
 public ScoreCardDtoBuilder(
     UserManager <IdentityUser> userManager,
     IHoleCardDtoBuilder holeCardViewModelBuilder,
     IHttpContextAccessor httpContextAccessor,
     IUnitOfwork unitOfwork,
     IAccountService accountService)
 {
     _userManager = userManager;
     _holeCardViewModelBuilder = holeCardViewModelBuilder;
     _httpContextAccessor      = httpContextAccessor;
     _unitOfwork     = unitOfwork;
     _accountService = accountService;
 }
Пример #8
0
 public ScoreCardService(
     ISessionStorage <ScoreCardDto> sessionStorage,
     IMapper mapper,
     IScoreCardDtoBuilder scoreCardDtoBuilder,
     IUnitOfwork unitOfWork,
     IHttpContextAccessor accessor,
     UserManager <IdentityUser> userManager)
 {
     _sessionStorage      = sessionStorage;
     _mapper              = mapper;
     _scoreCardDtoBuilder = scoreCardDtoBuilder;
     _sessionKey          = EnumHelper.ScoreCardViewModelSessionKey.ScoreCardViewModel.ToString();
     _unitOfWork          = unitOfWork;
     _httpContext         = accessor;
     _userManager         = userManager;
 }
Пример #9
0
        public void Setup()
        {
            var services = new ServiceCollection();

            services.AddSingleton <IConfigurationProvider>(AutoMapperConfiguration.RegisterMappings());
            services.AddTransient <IUnitOfwork>(s => new UnitOfWork(new ContextBase()));
            services.AddScoped <IMapper>(sp => new Mapper(sp.GetRequiredService <IConfigurationProvider>(), sp.GetService));
            services.AddScoped <IVideoManagementRepository, VideoManagementRepository>();
            services.AddScoped <ITransferArchiveControlRepository, TransferArchiveControlRepository>();
            services.AddScoped <IMail, Mail>();
            services.AddScoped <ContextBase>();

            services.AddScoped <IVideoManagementAppService, VideoManagementAppService>();

            var serviceProvider = services.BuildServiceProvider();

            _videoManagementAppService        = serviceProvider.GetService <IVideoManagementAppService>();
            _transferArchiveControlRepository = serviceProvider.GetService <ITransferArchiveControlRepository>();
            _unitOfwork = serviceProvider.GetService <IUnitOfwork>();
        }
Пример #10
0
 public ServicesTypeController(IUnitOfwork <ServicesType> UnitOfwork)
 {
     _UnitOfwork = UnitOfwork;
 }
        public DirectTrustPatientRepository(IUnitOfwork unitOfWork)
        {
            this._unitOfWork = unitOfWork;

            this._procedureManagement = new ProcedureManagement();
        }
Пример #12
0
 public Service(IUnitOfwork unitOfwork, IRepository <TEntity> repository)
 {
     this._unitOfWork = unitOfwork;
     this._repository = repository;
 }
Пример #13
0
 public ProductoLogica(IUnitOfwork unitOfwork)
 {
     _unitOfWork = unitOfwork;
 }
Пример #14
0
 public test(IUnitOfwork uow)
 {
     this._uow = uow;
 }
Пример #15
0
 public Case3Service(IUnitOfwork unitOfWork)
 {
     UnitOfWork = unitOfWork;
 }
Пример #16
0
 public LocationController(IUnitOfwork <Locations> UnitOfwork)
 {
     _UnitOfwork = UnitOfwork;
 }
Пример #17
0
 public UserService(IAccountService accountService, IUnitOfwork unitOfWork, IMapper mapper)
 {
     _accountService = accountService;
     _unitOfWork     = unitOfWork;
     _mapper         = mapper;
 }
Пример #18
0
 public LogicUnitOfWork(IUnitOfwork unitOfWork)
 {
     UnitOfWork = unitOfWork;
 }
Пример #19
0
 public CommonRepository()
 {
     this._unitOfWork          = new UnitOfWork();
     this._procedureManagement = new ProcedureManagement();
 }
Пример #20
0
 public VehiclesController(IMapper mapper, IVehicleRepository repository, IUnitOfwork unitOfwork)
 {
     this.mapper     = mapper;
     this.repository = repository;
     this.unitOfwork = unitOfwork;
 }
Пример #21
0
 public AssignController(IUnitOfwork <Assigns> UnitOfwork)
 {
     _UnitOfwork = UnitOfwork;
 }
Пример #22
0
 public UserService(IUnitOfwork unitOfWork, IRepository <User> repository) : base(unitOfWork, repository)
 {
 }
Пример #23
0
 public CopiesLogic(IUnitOfwork unitOfwork) : base(unitOfwork)
 {
 }
Пример #24
0
 public EstudianteRep(IUnitOfwork uow)
 {
     _uow           = uow;
     _estudianteRep = _uow.Repository <Estudiante>();
 }
Пример #25
0
 public AppUsersRepository()
 {
     this._unitOfWork = new UnitOfWork();
     _ctx             = new RehabEntities();
 }
Пример #26
0
 public MoviesLogic(IUnitOfwork unitOfWork, ICopiesLogic copiesLogic) : base(unitOfWork)
 {
     _copiesLogic = copiesLogic;
 }
 public StudentService(IUnitOfwork unitOfWork, IRepository <Student> repository) : base(unitOfWork, repository)
 {
 }
Пример #28
0
 public InvoiceService(IUnitOfwork unitOfwork)
 {
     _unitOfwork = unitOfwork;
 }
Пример #29
0
 public CategoryController(IUnitOfwork unitOfwork)
 {
     _unitOfWork = unitOfwork;
 }
Пример #30
0
 public TNotesRepository(IUnitOfwork unitOfWork)
 {
     this._unitOfWork = unitOfWork;
     //this._procedureManagement = new ProcedureManagement();
 }