예제 #1
0
 public DrinkRepository(DataContext context, IPropertyMappingService propertyMappingService)
 {
     _context = context;
     _propertyMappingService = propertyMappingService;
 }
예제 #2
0
 public Employee(IData data, IMapper mapper, IPropertyMappingService propertyMapping)
 {
     this.data            = data ?? throw new NullReferenceException(nameof(data));
     this.mapper          = mapper ?? throw new NullReferenceException(nameof(mapper));
     this.propertyMapping = propertyMapping ?? throw new NullReferenceException(nameof(propertyMapping));
 }
예제 #3
0
 public BandsController(IBandAlbumRepository bandAlbumRepository, IMapper mapper, IPropertyMappingService propertyMappingService, IPropertyValidationService propertyValidationService)
 {
     _bandAlbumRepository = bandAlbumRepository ??
                            throw new ArgumentNullException(nameof(bandAlbumRepository));
     _mapper = mapper ??
               throw new ArgumentNullException(nameof(mapper));
     _propertyMappingService = propertyMappingService ??
                               throw new ArgumentNullException(nameof(propertyMappingService));
     _propertyValidationService = propertyValidationService ??
                                  throw new ArgumentNullException(nameof(propertyValidationService));
 }
 public LibraryRepository(LibraryContext context, IPropertyMappingService propertyMappingService)
 {
     this.propertyMappingService = propertyMappingService;
     this.context = context;
 }
예제 #5
0
 public SortCriteriaResolver(IPropertyMappingService propertyMappingService)
 {
     _propertyMappingService = propertyMappingService;
 }
예제 #6
0
 public AuthorsController(ILibraryRepository libraryRepository, IUrlHelper urlHelper, IPropertyMappingService propertyMappingService, ITypeHelperService typeHelperService)
 {
     LibraryRepository      = libraryRepository ?? throw new ArgumentNullException(nameof(libraryRepository));
     UrlHelper              = urlHelper ?? throw new ArgumentNullException(nameof(urlHelper));
     PropertyMappingService = propertyMappingService ?? throw new ArgumentNullException(nameof(propertyMappingService));
     TypeHelperService      = typeHelperService ?? throw new ArgumentNullException(nameof(typeHelperService));
 }
 public CourseLibraryRepository(CourseLibraryContext context, IPropertyMappingService propertyMappingService)
 {
     _context = context ?? throw new ArgumentNullException(nameof(context));
     _propertyMappingService = propertyMappingService ?? throw new ArgumentNullException(nameof(propertyMappingService));
 }
 public TouristRoutesController(ITouristRouteRepository touristRouteRepository, IMapper mapper, IUrlHelperFactory urlHelperFactory, IActionContextAccessor actionContextAccessor, IPropertyMappingService propertyMappingService)
 {
     _touristRouteRepository = touristRouteRepository;
     _mapper = mapper;
     _propertyMappingService = propertyMappingService;
     _urlHelper = urlHelperFactory.GetUrlHelper(actionContextAccessor.ActionContext);
 }
예제 #9
0
        public DataManagerService(ICourseLibraryRepository repo, IMapper mapper, IUrlHelper urlHelper, IPropertyMappingService propertyMapper)
        {
            _repo           = repo ?? throw new ArgumentNullException(nameof(repo));
            _mapper         = mapper ?? throw new ArgumentNullException(nameof(mapper));
            _urlHelper      = urlHelper;
            _propertyMapper = propertyMapper;

            _authorPropertyMapping = new Dictionary <string, PropertyMappingValue>(StringComparer.OrdinalIgnoreCase)
            {
                { "Id", new PropertyMappingValue(new List <string> {
                        "Id"
                    }) },
                { "MainCategory", new PropertyMappingValue(new List <string> {
                        "MainCategory"
                    }) },
                { "Age", new PropertyMappingValue(new List <string> {
                        "DateOfBirth"
                    }) },
                { "Name", new PropertyMappingValue(new List <string> {
                        "FirstName", "LastName"
                    }) }
            };

            _propertyMapper.Init <AuthorDto, Author>(_authorPropertyMapping);
        }
예제 #10
0
 public AgencyRepository(DataContext context, IPropertyMappingService propertyMappingService)
 {
     _context = context ?? throw new ArgumentNullException(nameof(context));
     _propertyMappingService = propertyMappingService ??
                               throw new ArgumentNullException(nameof(propertyMappingService));
 }
예제 #11
0
 public AuthorsController(ILibraryRepository libraryRepository, IMapper mapper, IUrlHelper urlHelper, IPropertyMappingService propertyMappingService)
 {
     _libraryRepository      = libraryRepository;
     _mapper                 = mapper;
     _urlHelper              = urlHelper;
     _propertyMappingService = propertyMappingService;
 }
 public EmployeesController(IMapper mapper, IEmployeeRepository employeeRepository, IPropertyMappingService propertyMappingService) : base(mapper)
 {
     _employeeRepository     = employeeRepository;
     _propertyMappingService = propertyMappingService;
 }
 public ServiceInfosController(IServiceInfosRepository serviceInfoRepository, IMapper mapper, IPropertyMappingService propertyMapping, IPropertyValidationService propertyValidation)
 {
     _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _serviceInfoRepository = serviceInfoRepository ?? throw new ArgumentNullException(nameof(serviceInfoRepository));
     _propertyMapping       = propertyMapping ?? throw new ArgumentNullException(nameof(propertyMapping));
     _propertyValidation    = propertyValidation ?? throw new ArgumentNullException(nameof(propertyValidation));
 }
 public UserRepository(ParkingContext context, IOptions <AppSettings> appSettings, IPropertyMappingService propertyMappingService)
 {
     _context                = context;
     _appSettings            = appSettings.Value;
     _propertyMappingService = propertyMappingService;
 }
예제 #15
0
 public AuthorsController(ICourseLibraryRepository courseLibraryRepository, IMapper mapper, IPropertyMappingService propertyMappingService)
 {
     _courseLibraryRepository = courseLibraryRepository ??
                                throw new ArgumentNullException(nameof(courseLibraryRepository));
     _mapper = mapper ??
               throw new ArgumentNullException(nameof(mapper));
     _propertyMappingService = propertyMappingService ??
                               throw new ArgumentNullException(nameof(propertyMappingService));
 }
예제 #16
0
 public EmployeeController(IEmployeeRepository employeeRepository, IRegistRepository registRepository, IMapper mapper, IPropertyMappingService propertyMappingService)
 {
     this._employeeRepository = employeeRepository ?? throw new ArgumentNullException(nameof(employeeRepository));
     this._registRepository   = registRepository ?? throw new ArgumentNullException(nameof(registRepository));
     this._mapper             = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _propertyMappingService  = propertyMappingService;
 }
 public QueryableExtensionsTests()
 {
     _typeHelperService      = new TypeHelperService();
     _propertyMappingService = new PropertyMappingService();
     _fixture = new Fixture();
 }
예제 #18
0
 public AuthorsController(ILibraryRepository libraryRepository, IUrlHelper urlHelper, IPropertyMappingService propertyMappingService, ITypeHelperService typeHelperService)
 {
     _libraryRepository      = libraryRepository;
     _urlHelper              = urlHelper;
     _propertyMappingService = propertyMappingService;
     _typeHelperService      = typeHelperService;
 }
예제 #19
0
 public CompanyRepository(RoutineDbContext context, IPropertyMappingService propertyMappingService)
 {
     _context = context ?? throw new ArgumentNullException(nameof(context));
     _propertyMappingService = propertyMappingService;
 }
 public UsersController(IStringLocalizer <UsersController> localizer, IUserService userService, Helpers.IUrlHelper urlHelper, IPropertyMappingService propertyMappingService, ISecurityService securityService, IMapper mapper)
 {
     this.userService            = userService;
     this.urlHelper              = urlHelper;
     this.propertyMappingService = propertyMappingService;
     this.securityService        = securityService;
     this.mapper    = mapper;
     this.localizer = localizer;
 }
예제 #21
0
 public CompanyRespository(RoutineDbContext routineDbContext, IPropertyMappingService propertyMappingService)
 {
     this.routineDbContext   = routineDbContext ?? throw new ArgumentNullException(nameof(routineDbContext));
     _propertyMappingService = propertyMappingService ?? throw new ArgumentNullException(nameof(propertyMappingService));
 }
예제 #22
0
 public LibraryRepository(LibraryDbContext _context, IPropertyMappingService _propertyMappingService)
 {
     context = _context;
     propertyMappingService = _propertyMappingService;
 }
예제 #23
0
 public UserRepository(DatabaseContext ctx, IPropertyMappingService propertyMappingService)
 {
     context = ctx;
     this.propertyMappingService = propertyMappingService;
 }
예제 #24
0
 public StoreDao(MyDbContext myDbContext, IPropertyCheckerService propertyCheckerService, IPropertyMappingService propertyMappingService)
 {
     this._context = myDbContext;
     this._propertyCheckerService = propertyCheckerService;
     this._propertyMappingService = propertyMappingService;
 }
예제 #25
0
 public CommentRepository(DivingAPIContext context, IPropertyMappingService propertyMapping)
 {
     _context         = context;
     _propertyMapping = propertyMapping;
 }
예제 #26
0
 public UserController(IMapper mapper, IPropertyMappingService service, IPropertyCheckerService checker,
                       IUserManager userManager, IFriendshipManager friendshipManager)
     : base(mapper, service, checker, userManager, friendshipManager)
 {
 }
예제 #27
0
 public LibraryRepository(LibraryContext context,
                          IPropertyMappingService propertyMappingService)
 {
     _context = context;
     _propertyMappingService = propertyMappingService;
 }
예제 #28
0
 public CompaniesController(ICompanyRepository _companyRepository, IMapper mapper, IPropertyMappingService propertyMappingService,
                            IPropertyCheckerService propertyCheckerService)
 {
     this._companyRepository = _companyRepository ?? throw new ArgumentException(nameof(CompanyRepository));
     _mapper = mapper ?? throw new ArgumentException(nameof(mapper));
     _propertyMappingService = propertyMappingService ?? throw new ArgumentException(nameof(propertyMappingService));
     _propertyCheckerService = propertyCheckerService ?? throw new ArgumentException(nameof(propertyCheckerService));
 }
예제 #29
0
 public AuthorsController(ILibraryRepository libraryRepository, IMapper mapper, IPropertyMappingService propertyMappingService, IPropertyCheckerService propertyCheckerService)
 {
     this.libraryRepository      = libraryRepository ?? throw new ArgumentNullException(nameof(libraryRepository));
     this.mapper                 = mapper ?? throw new ArgumentNullException(nameof(mapper));
     this.propertyMappingService = propertyMappingService ?? throw new ArgumentNullException(nameof(propertyMappingService));
     this.propertyCheckerService = propertyCheckerService ?? throw new ArgumentNullException(nameof(propertyCheckerService));
 }
예제 #30
0
 public SongbookRepository(ILogger <SongbookRepository> logger, ISongbookDao songbookDao, ISongDao songDao, ICreatorDao creatorDao, IPropertyMappingService propertyMappingService)
 {
     _logger                 = logger ?? throw new ArgumentNullException(nameof(logger));
     _songbookDao            = songbookDao ?? throw new ArgumentNullException(nameof(songbookDao));
     _songDao                = songDao ?? throw new ArgumentNullException(nameof(songDao));
     _creatorDao             = creatorDao ?? throw new ArgumentNullException(nameof(creatorDao));
     _propertyMappingService = propertyMappingService ?? throw new ArgumentNullException(nameof(propertyMappingService));
 }