public UnitOfWork(GreekTheaterAPIContext context, IPropertyMappingService propertyMappingService) { _context = context ?? throw new ArgumentNullException(nameof(context)); Directors = new DirectorRepository(context); Actors = new ActorRepository(context); Performances = new PerformanceRepository(context, propertyMappingService); }
public PerformanceService(IPerformanceRepository performanceRepository, IMapper mapper, IPerformanceSearchQueryBuilder query) { _mapper = mapper; _performanceRepository = performanceRepository; _query = query; }
public GetPerformanceValidator(IPerformanceRepository performanceRepository) { _performanceRepository = performanceRepository; _dbContext = (HomeWorkDbContext)_performanceRepository.GetDbContext(); RuleFor(u => u) .MustAsync(PerformanceMustExists) .WithMessage("Błędny identyfikator występu"); }
public PerformanceController(INodeMonitorRepository nodemonitorRepostory, INodeRepository noderepostory, INodePerformanceRepository nodeperformanceRepostory, IPerformanceRepository rep, ITaskRepository taskrepostory, INodeRepository nodeRep, IUserRepository userRep) : base(nodeRep, userRep) { performancerepository = rep; taskrep = taskrepostory; nodeperformanceRep = nodeperformanceRepostory; noderep = noderepository; nodemonitorRep = nodemonitorRepostory; }
public GetFreeSeatByPerformanceValidator(IPerformanceRepository performanceRepository) { _performanceRepository = performanceRepository; _dbContext = (HomeWorkDbContext)_performanceRepository.GetDbContext(); RuleFor(u => u.PerformanceId) .NotEmpty() .WithMessage(Invariants.Messages.PerformanceIdNotEmpty); RuleFor(u => u) .MustAsync(PerformanceMustExists) .WithMessage(Invariants.Messages.PerformanceMustExists); }
public AthletesController(IAthleteRepository athleteRepository, IDeviceRepository deviceRepository, IPerformanceRepository performanceRepository, IEventRepository eventRepository, ILogger <AthletesController> logger, IMapper mapper) { _athleteRepository = athleteRepository; _deviceRepository = deviceRepository; _performanceRepository = performanceRepository; _eventRepository = eventRepository; _logger = logger; _mapper = mapper; }
public PerformancesController(IPerformanceRepository performanceRepository, IMeetingRepository meetingRepository, IEventRepository eventRepository, IStandardRepository standardRepository, IAthleteRepository athleteRepository, ILogger <PerformancesController> logger, IMapper mapper) { _performanceRepository = performanceRepository; _meetingRepository = meetingRepository; _eventRepository = eventRepository; _standardRepository = standardRepository; _athleteRepository = athleteRepository; _logger = logger; _mapper = mapper; }
public PerformanceController(IPerformanceRepository repository) { _repository = repository; }
public PerformanceController(FestivalContext db, IPerformanceRepository repo) { _db = db; _repo = repo; }
public UsersController(IMapper mapper, IUserRepository userRepo, IPerformanceRepository performanceRepo) { Mapper = mapper; UserRepo = userRepo; PerformanceRepo = performanceRepo; }
public UnitOfWork(IPerformanceRepository PerformanceRepositoryParam) { PerformanceRepository = PerformanceRepositoryParam; }
public PerformanceService(IPerformanceRepository performanceRepository, IUnitOfWork unitofwork) { this.performanceRepository = performanceRepository; _unitOfWork = unitofwork; }
public PerformancesController(IMapper mapper, IPerformanceRepository performanceRepo) { Mapper = mapper; PerformanceRepo = performanceRepo; }
public GetPerformanceQueryHandler(IPerformanceRepository performanceRepository) { _performanceRepository = performanceRepository; }
public GetFreeSeatByPerformanceQueryHandler(IPerformanceRepository performanceRepository) { _performanceRepository = performanceRepository; _dbContext = (HomeWorkDbContext)_performanceRepository.GetDbContext(); }