Пример #1
0
 public void Init(ITcpConnection connection, ICommandFactory commandFactory, int id, Car car)
 {
     Connection = connection;
     Id = id;
     Car = car;
     CommandFactory = commandFactory;
     _initilized = true;
 }
Пример #2
0
 public Car GetCarByImei(string imei)
 {
     var car = new Car
     {
         CarId = 1,
         Hash = "123",
         Imei = "123456789012345",
         Name = "Car 1"
     };
     return car;
 }
Пример #3
0
 public Car GetCar(int id)
 {
     var car = new Car
     {
         CarId = 1,
         Hash = "123",
         Imei = "123456789012345",
         Name = "Car 1"
     };
     return car;
 }
Пример #4
0
 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;
 }
Пример #5
0
 public void CreateCar(Car car)
 {
     _carRepository.Add(car);
 }
Пример #6
0
 public void CreateCar(Car car)
 {
     throw new NotImplementedException();
 }