Example #1
0
            public Arrangement(ICSVStopRepository csvStopRepository, IPlacesRepository placesRepository, IMapper mapper)
            {
                Mapper            = mapper;
                PlacesRepository  = placesRepository;
                CSVStopRepository = csvStopRepository;

                SUT = new StopController(csvStopRepository, placesRepository, mapper);
            }
 public StopController(ICSVStopRepository stopRepository, IPlacesRepository placesRepository, IMapper mapper)
 {
     this.mapper           = mapper ?? throw new ArgumentNullException(nameof(mapper));
     this.stopRepository   = stopRepository ?? throw new ArgumentNullException(nameof(stopRepository));
     this.placesRepository = placesRepository ?? throw new ArgumentNullException(nameof(placesRepository));
 }