Пример #1
0
 public ILeiaDevice GetDevice(string stubName)
 {
     this.Debug(string.Format("GetDevice( {0})", stubName));
     if (_leiaDevice != null)
     {
         _leiaDevice.SetProfileStubName(stubName);
         return(_leiaDevice);
     }
     _leiaDevice = new OfflineEmulationLeiaDevice(stubName);
     return(_leiaDevice);
 }
Пример #2
0
 public void UnregisterLeiaDevice()
 {
     this.Debug("Unregister LeiaDevice");
     _leiaDevice = null;
 }
Пример #3
0
 public bool RegisterLeiaDevice(AbstractLeiaDevice device)
 {
     this.Debug("Registered leia device: " + device.GetType());
     _leiaDevice = device;
     return(true);
 }