Ejemplo n.º 1
0
 public TheatreService(ITheatreRepository theatreRepository, IAuditoriumsRepository auditoriumsRepository, ISeatsRepository seatsRepository, IAddressesRepository addressesRepository)
 {
     _theatreRepository     = theatreRepository;
     _auditoriumsRepository = auditoriumsRepository;
     _seatsRepository       = seatsRepository;
     _addressesRepository   = addressesRepository;
 }
Ejemplo n.º 2
0
 public ORM(IFactory factory)
 {
     peopleRepository    = factory.GetPeopleRepository();
     carsRepository      = factory.GetCarsRepository();
     typesRepository     = factory.GetTypesRepository();
     statusRepository    = factory.GetStatusRepository();
     addressesRepository = factory.GetAddressesRepository();
 }
Ejemplo n.º 3
0
 public PatientsController(IUserInformationsRepository IUserInformationRepository,
                           IAddressesRepository IAddressesRepository,
                           IMedicalDocumentsRepository IMedicalDocumentsRepository) : base()
 {
     _IUserInformationRepository  = IUserInformationRepository;
     _IAddressesRepository        = IAddressesRepository;
     _IMedicalDocumentsRepository = IMedicalDocumentsRepository;
 }
Ejemplo n.º 4
0
 public HomeController(ISchedulesRepository ISchedulesRepository,
                       IUserInformationsRepository IUserInformationsRepository,
                       IAddressesRepository IAddressesRepository) : base()
 {
     _IUserInformationRepository = IUserInformationsRepository;
     _IAddressesRepository       = IAddressesRepository;
     _ISchedulesRepository       = ISchedulesRepository;
 }
Ejemplo n.º 5
0
 public AddressesService(
     IAddressesRepository addressesRepository,
     IUnitOfWork unitOfWork,
     IAddressValidator addressValidator)
 {
     _addressesRepository = addressesRepository;
     _unitOfWork          = unitOfWork;
     _validator           = addressValidator;
 }
Ejemplo n.º 6
0
 public AdminController(IUserInformationsRepository IUserInformationRepository,
                        IAddressesRepository IAddressesRepository,
                        IMedicalExperienceRepository IMedicalExperienceRepository,
                        ITreatmentsRepository ITreatmentsRepository) : base()
 {
     _IUserInformationRepository   = IUserInformationRepository;
     _IAddressesRepository         = IAddressesRepository;
     _IMedicalExperienceRepository = IMedicalExperienceRepository;
     _ITreatmentsRepository        = ITreatmentsRepository;
 }
 public RoutePlannerService(ICarPlanner carPlanner, IRoutePlanner routePlanner, 
     IAddressesRepository addressesRepo, IGoogleMapsEmbedUrlProvider urlProvider, 
     IObjectMapper<RouteInternal, Route> mapper)
 {
     _routePlanner = routePlanner;
     _addressesRepo = addressesRepo;
     _urlProvider = urlProvider;
     _carPlanner = carPlanner;
     _mapper = mapper;
 }
Ejemplo n.º 8
0
 public UserSettingsController(IAddressesRepository IAddressesRepository,
                               IUserInformationsRepository IUserInformationsRepository,
                               IPhotosRepository IPhotosRepository,
                               IMedicalExperienceRepository IMedicalExperienceRepository) : base()
 {
     _IAddressesRepository         = IAddressesRepository;
     _IPhotosRepository            = IPhotosRepository;
     _IMedicalExperienceRepository = IMedicalExperienceRepository;
     _IUserInformationsRepository  = IUserInformationsRepository;
 }
 public RoutePlannerService(ICarPlanner carPlanner, IRoutePlanner routePlanner,
                            IAddressesRepository addressesRepo, IGoogleMapsEmbedUrlProvider urlProvider,
                            IObjectMapper <RouteInternal, Route> mapper)
 {
     _routePlanner  = routePlanner;
     _addressesRepo = addressesRepo;
     _urlProvider   = urlProvider;
     _carPlanner    = carPlanner;
     _mapper        = mapper;
 }
Ejemplo n.º 10
0
 public Repository(IAddressesRepository addressesRepository, IAppointmentsRepository appointmentsRepository,
                   ICarTrademarksRepository carTrademarksRepository, ICarWorkshopsRepository carWorkshopsRepository,
                   ICountriesRepository countriesRepository, IUsersRepository usersRepository)
 {
     Addresses     = addressesRepository;
     Appointments  = appointmentsRepository;
     CarTrademarks = carTrademarksRepository;
     CarWorkshops  = carWorkshopsRepository;
     Countries     = countriesRepository;
     Users         = usersRepository;
 }
Ejemplo n.º 11
0
 public AccountController(
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     IEmailSender emailSender, ILogger <AccountController> logger,
     IAddressesRepository addresses)
 {
     this.userManager   = userManager;
     this.signInManager = signInManager;
     this.emailSender   = emailSender;
     this.logger        = logger;
     this.addresses     = addresses;
 }
Ejemplo n.º 12
0
 public ManageController(
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     IEmailSender emailSender, ILogger <ManageController> logger,
     UrlEncoder urlEncoder, IAddressesRepository addresses)
 {
     _userManager   = userManager;
     _signInManager = signInManager;
     _emailSender   = emailSender;
     _logger        = logger;
     _urlEncoder    = urlEncoder;
     this.addresses = addresses;
 }
Ejemplo n.º 13
0
        private IContainer GetMockedContainer(IDbContext ctx, IUnitOfWork uow, IRepository repoMock,
                                              IAddressesRepository addressMock, ICouriersRepository couriersMock, IOrderRepository ordersMock,
                                              IPackagesRepository packagesMock, ITimeIntervalsRepository timeIntervalsMock)
        {
            var builder = new ContainerBuilder();

            builder.RegisterInstance(ctx).As <IDbContext>();
            builder.RegisterInstance(uow).As <IUnitOfWork>();
            builder.RegisterInstance(repoMock ?? new Mock <IRepository>().Object).As <IRepository>();
            builder.RegisterInstance(addressMock ?? new Mock <IAddressesRepository>().Object).As <IAddressesRepository>();
            builder.RegisterInstance(couriersMock ?? new Mock <ICouriersRepository>().Object).As <ICouriersRepository>();
            builder.RegisterInstance(ordersMock ?? new Mock <IOrderRepository>().Object).As <IOrderRepository>();
            builder.RegisterInstance(packagesMock ?? new Mock <IPackagesRepository>().Object).As <IPackagesRepository>();
            builder.RegisterInstance(timeIntervalsMock ?? new Mock <ITimeIntervalsRepository>().Object)
            .As <ITimeIntervalsRepository>();
            return(builder.Build());
        }
Ejemplo n.º 14
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CustomerService"/> class.
        /// </summary>
        /// <param name="addressesRepository">The addresses repository.</param>
        /// <param name="customersRepository">The customers repository.</param>
        /// <param name="telephoneNumbersRepository">The telephone numbers repository.</param>
        /// <param name="customerDevicesRepository">The customer devices repository.</param>
        /// <exception cref="System.ArgumentNullException">
        /// addressesRepository
        /// or
        /// customersRepository
        /// or
        /// telephoneNumbersRepository
        /// </exception>
        public CustomerService(IAddressesRepository addressesRepository, ICustomersRepository customersRepository, ITelephoneNumbersRepository telephoneNumbersRepository, ICustomerDevicesRepository customerDevicesRepository)
        {
            if (addressesRepository == null)
            {
                throw new ArgumentNullException(nameof(addressesRepository));
            }
            if (customersRepository == null)
            {
                throw new ArgumentNullException(nameof(customersRepository));
            }
            if (telephoneNumbersRepository == null)
            {
                throw new ArgumentNullException(nameof(telephoneNumbersRepository));
            }
            if (customerDevicesRepository == null)
            {
                throw new ArgumentNullException(nameof(customerDevicesRepository));
            }

            this.customersRepository        = customersRepository;
            this.telephoneNumbersRepository = telephoneNumbersRepository;
            this.customerDevicesRepository  = customerDevicesRepository;
            this.addressesRepository        = addressesRepository;
        }
Ejemplo n.º 15
0
 /// <summary>
 /// コンストラクタ
 /// </summary>
 /// <param name="context"></param>
 public AddressesController(IAddressesRepository addressesRepository)
 {
     _addressesRepository = addressesRepository;
 }
Ejemplo n.º 16
0
 public ContactsController(IAddressesRepository a,
                           ITelecomDeviceRegistrationsRepository d)
 {
     addresses           = a;
     deviceRegistrations = d;
 }
Ejemplo n.º 17
0
 public AddressService(IAddressesRepository addressesRepository)
 {
     _addressesRepository = addressesRepository;
 }
Ejemplo n.º 18
0
 public AddressesController(IAddressesRepository addressesRepository, IPeopleRepository peopleRepository)
 {
     _peopleRepository    = peopleRepository;
     _addressesRepository = addressesRepository;
 }
Ejemplo n.º 19
0
 public HomeController(ILogger <HomeController> logger, IAddressesRepository repository)
 {
     _repository = repository;
     _logger     = logger;
 }
Ejemplo n.º 20
0
 public AddressService(IAddressesRepository _addressesRepository)
 {
     this._addressesRepository = _addressesRepository;
 }
Ejemplo n.º 21
0
 public CustomersService(ICustomersContext context)
 {
     _context      = context;
     _customerRepo = new CustomerRepository(context);
     _addrRepo     = new AddressRepository(context);
 }
 public AddressController(IAddressesRepository repo)
 {
     this.repo = repo;
 }