Пример #1
0
 public TripServices()
     : base()
 {
     _tripRepository        = new TripRepository();
     _potRepository         = new PotRepository();
     _participantRepository = new TripParticipantRepository();
     _userTripRepository    = new UserTripRepository();
     _potUserRepository     = new PotUserRepository();
 }
Пример #2
0
 public TripServices(ITripRepository tripRepo,
                     IPotRepository potRepo,
                     ITripParticipantRepository participantRepo,
                     IUserTripRepository userTripRepo,
                     IPotUserRepository potUserRepo)
     : base()
 {
     _tripRepository        = tripRepo;
     _potRepository         = potRepo;
     _participantRepository = participantRepo;
     _userTripRepository    = userTripRepo;
     _potUserRepository     = potUserRepo;
 }
Пример #3
0
 public DeleteTripParticipantCommandHandler(ITripParticipantRepository tripParticipantRepository)
 {
     _tripParticipantRepository = tripParticipantRepository;
 }
Пример #4
0
 public AddTripParticipantCommandHandler(ITripParticipantRepository tripParticipantRepository, IUserRepository userRepository, ITripsRepository tripsRepository)
 {
     _tripParticipantRepository = tripParticipantRepository;
     _userRepository            = userRepository;
     _tripsRepository           = tripsRepository;
 }