public DeviceRegistryRepositoryWithIoTHubDMTests()
 {
     this._fixture = new Fixture();
     this._mockDocumentDBClient     = new Mock <IDocumentDBClient <DeviceModel> >();
     this._mockIoTHubDeviceManager  = new Mock <IIoTHubDeviceManager>();
     this._deviceRegistryRepository = new DeviceRegistryRepositoryWithIoTHubDM(this._mockDocumentDBClient.Object, this._mockIoTHubDeviceManager.Object);
 }
Ejemplo n.º 2
0
        public DeviceController(DeviceRegistryRepository deviceRegistryRepository, DeviceRepository deviceRepository)
        {
            Guard.NotNull(deviceRepository, nameof(deviceRepository));
            Guard.NotNull(deviceRepository, nameof(deviceRepository));

            _deviceRepository         = deviceRepository;
            _deviceRegistryRepository = deviceRegistryRepository;
        }
Ejemplo n.º 3
0
 public DiscoveryController(DeviceRegistryRepository deviceRegistryRepository, ILogger <DeviceController> logger)
 {
     _logger = logger;
     _deviceRegistryRepository = deviceRegistryRepository;
 }
Ejemplo n.º 4
0
 public DeviceRegistryRepositoryTests()
 {
     this._fixture = new Fixture();
     this._mockDocumentDBClient     = new Mock <IDocumentDBClient <DeviceModel> >();
     this._deviceRegistryRepository = new DeviceRegistryRepository(this._mockDocumentDBClient.Object);
 }