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); }
public GetVehiclesController(IVehicleCommands vehicleCommands, IVehicleQueries vehicleQueries, IVehicleEntityMapper entityMapper) { _vehicleCommands = vehicleCommands; _vehicleQueries = vehicleQueries; _entityMapper = entityMapper; }
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; }
public VehicleController(IVehicleQueries vehicleQueries) { this.vehicleQueries = vehicleQueries; }
public VehicleController(IMediator mediator, IVehicleQueries vehicleQueries) { this.mediator = mediator; this.vehicleQueries = vehicleQueries; }
public UpdateCommandHandler(IVehicleRepository vehicleRepository, IVehicleQueries vehicleQueries) { this.vehicleRepository = vehicleRepository; this.vehicleQueries = vehicleQueries; }