예제 #1
0
 public PatchVehiclesController(IVehicleCommands vehicleCommands, IVehicleQueries vehicleQueries, IVehicleEntityMapper entityMapper, IVehicleModelValidation vehicleModelValidation, IVehicleModelMapper vehicleModelMapper)
 {
     _vehicleCommands        = vehicleCommands;
     _vehicleQueries         = vehicleQueries;
     _vehicleModelValidation = vehicleModelValidation;
     _vehicleModelMapper     = vehicleModelMapper;
 }
 public VehicleQueriesTests()
 {
     _hostingEnvironment = new Mock <IHostingEnvironment>();
     _hostingEnvironment.Setup(x => x.ContentRootPath).Returns(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location));
     _vehicleQueries = new VehicleQueries(_hostingEnvironment.Object);
 }
예제 #3
0
 public GetVehiclesController(IVehicleCommands vehicleCommands, IVehicleQueries vehicleQueries, IVehicleEntityMapper entityMapper)
 {
     _vehicleCommands = vehicleCommands;
     _vehicleQueries  = vehicleQueries;
     _entityMapper    = entityMapper;
 }
예제 #4
0
 public VehiclesController(IVehicleQueries vehicleQueries, ILogger <VehiclesController> logger)
 {
     _vehicleQueries = vehicleQueries ?? throw new ArgumentNullException(nameof(vehicleQueries));
     _logger         = logger ?? throw new ArgumentNullException(nameof(logger));
 }
 /// <summary>
 ///Constructor injection
 /// </summary>
 public VehicleAdminController(IMediator mediator, IVehicleQueries queries)
 {
     _mediator = mediator ?? throw new ArgumentNullException(nameof(mediator));
     _queries  = queries;
 }
예제 #6
0
 public VehicleController(IVehicleQueries vehicleQueries)
 {
     this.vehicleQueries = vehicleQueries;
 }
예제 #7
0
 public VehicleController(IMediator mediator, IVehicleQueries vehicleQueries)
 {
     this.mediator       = mediator;
     this.vehicleQueries = vehicleQueries;
 }
예제 #8
0
 public UpdateCommandHandler(IVehicleRepository vehicleRepository, IVehicleQueries vehicleQueries)
 {
     this.vehicleRepository = vehicleRepository;
     this.vehicleQueries    = vehicleQueries;
 }