public void Constructor_CarDataServiceIsNull_ThrowException() { int id = 1; ICarDataService carDataService = null; //Parent entities var viewModelEdit = new CarEditViewModel(carDataService); }
public CarEditViewModel(int id, ICarDataService carDataService , IEnumerable<UserProfile> userProfiles ) : this(carDataService , userProfiles) { if(id > 0) { LoadCar(id); } }
public CarEditViewModel(int id, ICarDataService carDataService , IEnumerable <UserProfile> userProfiles ) : this(carDataService , userProfiles ) { if (id > 0) { LoadCar(id); } }
public CarEditViewModel(Car car, ICarDataService carDataService , IEnumerable<UserProfile> userProfiles ) : this(carDataService , userProfiles) { if (car == null) { throw new ArgumentNullException("car must not be null"); } this.Car = car; }
public CarEditViewModel(Car car, ICarDataService carDataService , IEnumerable <UserProfile> userProfiles ) : this(carDataService , userProfiles ) { if (car == null) { throw new ArgumentNullException("car must not be null"); } this.Car = car; }
public CarEditViewModel(ICarDataService carDataService , IEnumerable<UserProfile> userProfiles ) { if (carDataService == null) { throw new ArgumentNullException("carDataService must not be null"); } this.carDataService = carDataService; this.carDataService.NotifyHasChanges += OnCarDataServiceNotifyHasChanges; //Parent entities assign if(userProfiles == null) { throw new ArgumentNullException("userProfiles must not be null"); } this.UserProfiles = new ObservableCollection<UserProfile>(userProfiles); LoadNomenclaturesData(); NewCar(); }
public CarEditViewModel(ICarDataService carDataService , IEnumerable <UserProfile> userProfiles ) { if (carDataService == null) { throw new ArgumentNullException("carDataService must not be null"); } this.carDataService = carDataService; this.carDataService.NotifyHasChanges += OnCarDataServiceNotifyHasChanges; //Parent entities assign if (userProfiles == null) { throw new ArgumentNullException("userProfiles must not be null"); } this.UserProfiles = new ObservableCollection <UserProfile>(userProfiles); LoadNomenclaturesData(); NewCar(); }
/// <summary> /// Default Constructor /// </summary> /// <param name="carDataService">Instance of Type ICarDataService</param> public CarController(ICarDataService carDataService) { _carDataService = carDataService; }
/// <summary> /// Default Constructor /// </summary> /// <param name="mapper">Instance of Type IMapper</param> /// <param name="carDataService">Instance of Type ICarDataService</param> public HomeController(IMapper mapper, ICarDataService carDataService) { _mapper = mapper; _carDataService = carDataService; }
public CarService(IMapper mapper, ICarDataService carDataService) { _mapper = mapper; _carDataService = carDataService; }
public UploadVehiclesController(ICsvParserService parser, ICarDataService carDataService) { _parser = parser; _carDataSvc = carDataService; }
public CarBusinessService(ICarDataService dataService, IMapper mapper) { _dataService = dataService; _mapper = mapper; }
public BookingService(IBookingDataService bookingData, IGarageDataService garageData, ICarDataService carData) { _bookingData = bookingData; _garageData = garageData; _carData = carData; }