Example #1
0
        public void Setup()
        {
            deviceName = "My Device";
            deviceId = Guid.NewGuid();
            customerId = Guid.NewGuid();
            devicePrimaryIP = "192.168.234.12";
            deviceSecondaryIP = "1.2.3.4";
            customerId = Guid.NewGuid();
            device = new Device(deviceId, customerId, deviceName, devicePrimaryIP);

            //device.AssignServiceControl(new AssignedServiceControl(
            //    Guid.NewGuid(), Guid.NewGuid(), "TEST", 1));
        }
Example #2
0
 public void Should_Be_Restorable_From_StateObject()
 {
     var state = (DeviceState)device.GetState();
     var restoredDevice = new Device(state);
     AssertEx.PropertyValuesAreEquals(restoredDevice, device);
 }