Beispiel #1
0
 /// <summary>
 /// Creates CustomerContextRepository instance.
 /// </summary>
 /// <param name="genericsDbContextRepo">Customer generics database context object.</param>
 /// <param name="vehicleContextRepo">Vehicle generics database context object.</param>
 /// <param name="genericsVehicleTransDbContextRepo">Signal transactions generics database context object.</param>
 /// <param name="genericsConnectionStatusRepo">Vehicle ping signal context object.</param>
 /// <param name="serviceBusQueue">RabbitMQ object</param>
 public CustomerContextRepository(IGenericsDbContextRepository <Models.Customer> genericsDbContextRepo,
                                  IGenericsDbContextRepository <Models.Vehicle> vehicleContextRepo,
                                  IGenericsDbContextRepository <VehicleStatusTrans> genericsVehicleTransDbContextRepo,
                                  IVehiclePingStatusContextRepository genericsConnectionStatusRepo,
                                  MqService serviceBusQueue)
 {
     _genericsCustomerDbContextRepo     = genericsDbContextRepo;
     _vehicleContextRepo                = vehicleContextRepo;
     _genericsVehicleTransDbContextRepo = genericsVehicleTransDbContextRepo;
     _genericsConnectionStatusRepo      = genericsConnectionStatusRepo;
     _serviceBusQueue = serviceBusQueue;
     _logger          = new CustomLogger();
 }
Beispiel #2
0
 /// <summary>
 /// Creates VehicleContextRepository instance.
 /// </summary>
 /// <param name="genericsVehicleDbContextRepo">Vehicle generics database context object.</param>
 /// <param name="genericsCustomerDbContextRepo">Customer generics database context object.</param>
 /// <param name="vehiclePingStatusRepository">Signal transactions repository object.</param>
 /// <param name="genericsVehicleTransDbContextRepo">Vehicle transactions generics database context object.</param>
 /// <param name="mqService">RabbitMQ Object.</param>
 public VehicleContextRepository(IGenericsDbContextRepository <Models.Vehicle> genericsVehicleDbContextRepo,
                                 IGenericsDbContextRepository <Customer> genericsCustomerDbContextRepo,
                                 IVehiclePingStatusContextRepository vehiclePingStatusRepository,
                                 IGenericsDbContextRepository <VehicleStatusTrans> genericsVehicleTransDbContextRepo,
                                 MqService mqService)
 {
     _genericsVehicleDbContextRepo      = genericsVehicleDbContextRepo;
     _genericsCustomerDbContextRepo     = genericsCustomerDbContextRepo;
     _vehiclePingStatusRepository       = vehiclePingStatusRepository;
     _genericsVehicleTransDbContextRepo = genericsVehicleTransDbContextRepo;
     _serviceBusQueue = mqService;
     _logger          = new CustomLogger();
 }
        public void create_connection_status_context_repository_object_using_factory_pattern()
        {
            _dbContextRepo = new ConnectionStatusFactory <VehiclePingStatusContextRepository>().GetInstance();

            Assert.IsNotNull(_dbContextRepo);
        }
 public ConnectionStatusUnitTest()
 {
     _contextRepo = new ConnectionStatusFactory <VehiclePingStatusContextRepository>().GetInstance();
 }
 public VehicleConnectionStatusServiceController()
 {
     _contextRepo  = new ConnectionStatusFactory <VehiclePingStatusContextRepository>().GetInstance();
     _mqServiceBus = new MqService();
     _logger       = new CustomLogger();
 }
 public RabbitMQEventBusUnitTest()
 {
     _contextRepo  = new ConnectionStatusFactory <VehiclePingStatusContextRepository>().GetInstance();
     _mqServiceBus = new MqService();
 }