public void Init(ITcpConnection connection, ICommandFactory commandFactory, int id, Car car) { Connection = connection; Id = id; Car = car; CommandFactory = commandFactory; _initilized = true; }
public Car GetCarByImei(string imei) { var car = new Car { CarId = 1, Hash = "123", Imei = "123456789012345", Name = "Car 1" }; return car; }
public Car GetCar(int id) { var car = new Car { CarId = 1, Hash = "123", Imei = "123456789012345", Name = "Car 1" }; return car; }
public IEnumerable<Car> GetCars() { var list = new List<Car>(); var car = new Car { CarId = 1, Hash = "123", Imei = "123456789012345", Name = "Car 1" }; list.Add(car); return list; }
public void CreateCar(Car car) { _carRepository.Add(car); }
public void CreateCar(Car car) { throw new NotImplementedException(); }