Description of SupportedDevicesManager.
Наследование: IDevicesManager
Пример #1
0
        public void Setup()
        {
            manager = new SupportedDevicesManager();

            mocks = new MockRepository();

            portableDevicesService         = mocks.StrictMock <WindowsPortableDevicesService>();
            manager.PortableDevicesService = portableDevicesService;
        }
Пример #2
0
        public void Setup()
        {
            manager = new SupportedDevicesManager();

            mocks = new MockRepository();

            portableDevicesService = mocks.StrictMock<WindowsPortableDevicesService>();
            manager.PortableDevicesService = portableDevicesService;
        }
Пример #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);
 }