Description of SupportedDevicesManager.
Inheritance: IDevicesManager
Exemplo n.º 1
0
        public void Setup()
        {
            manager = new SupportedDevicesManager();

            mocks = new MockRepository();

            portableDevicesService         = mocks.StrictMock <WindowsPortableDevicesService>();
            manager.PortableDevicesService = portableDevicesService;
        }
Exemplo n.º 2
0
        public void Setup()
        {
            manager = new SupportedDevicesManager();

            mocks = new MockRepository();

            portableDevicesService = mocks.StrictMock<WindowsPortableDevicesService>();
            manager.PortableDevicesService = portableDevicesService;
        }
Exemplo n.º 3
0
 private void InitializeDevicesManager()
 {
     portableDevicesService = new WindowsPortableDevicesService();
     supportedDevicesManager = new SupportedDevicesManager();
     supportedDevicesManager.PortableDevicesService = portableDevicesService;
     supportedDevicesManager.ConfiguredDevices = modelRepository.Get<DeviceCollection>("devices");
     supportedDevicesManager.NewDeviceConnected += new NewDeviceConnectedHandler(NewDeviceConnectedEventHandler);
     supportedDevicesManager.DeviceRemoved += new DeviceRemovedHandler(DeviceRemovedEventHandler);
 }