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