public UnitedValuesConverterTests(EntitiesConverterFixture fixture)
        {
            _sensorValuesFactory = fixture.SensorValuesFactory;
            _sensorValuesTester  = fixture.SensorValuesTester;

            _timeCollected = DateTime.UtcNow;
        }
Exemplo n.º 2
0
        public SensorValuesToDataConverterTests(EntitiesConverterFixture converterFixture)
        {
            _sensorValuesFactory = converterFixture.SensorValuesFactory;
            _sensorValuesTester  = converterFixture.SensorValuesTester;
            _productName         = EntitiesConverterFixture.ProductName;

            _timeCollected = DateTime.UtcNow;
        }
        protected MonitoringCoreTestsBase(DatabaseFixture fixture, DatabaseRegisterFixture dbRegisterFixture)
        {
            _databaseAdapterManager = new DatabaseAdapterManager(fixture.DatabasePath);
            _databaseAdapterManager.AddTestProduct();

            dbRegisterFixture.RegisterDatabase(_databaseAdapterManager);

            _sensorValuesFactory = new SensorValuesFactory(TestProductsManager.TestProduct.Key);
            _sensorValuesTester  = new SensorValuesTester(TestProductsManager.TestProduct.Name);

            _valuesCache = new ValuesCache();

            var productManagerLogger = CommonMoqs.CreateNullLogger <ProductManager>();

            _productManager = new ProductManager(_databaseAdapterManager.DatabaseAdapter, productManagerLogger);
        }
        public SensorValuesToDataEntityConverterTests(EntitiesConverterFixture converterFixture)
        {
            _sensorValuesFactory = converterFixture.SensorValuesFactory;

            _timeCollected = DateTime.UtcNow;
        }
 public SensorValueBaseToSensorInfoConverterTests(EntitiesConverterFixture fixture)
 {
     _sensorValuesFactory = fixture.SensorValuesFactory;
     _sensorValuesTester  = fixture.SensorValuesTester;
 }
 public EntitiesConverterFixture()
 {
     SensorValuesFactory = new SensorValuesFactory(ProductName);
     SensorValuesTester  = new SensorValuesTester(ProductName);
 }