public void ShouldCorrectlyPrintCoilInfo() { var coil = new CoilMapping { Id = "c_left_flipper", Description = "Left Flipper" }; coil.ToString().Should().Be("coil c_left_flipper Left Flipper"); }
public CoilListData(CoilMapping coilMapping) { Id = coilMapping.Id; Description = coilMapping.Description; Destination = coilMapping.Destination; Device = coilMapping.Device; if (string.IsNullOrEmpty(coilMapping.DeviceItem) && Device != null && Device.AvailableCoils.Count() == 1) { DeviceItem = Device.AvailableCoils.First().Id; } else { DeviceItem = coilMapping.DeviceItem; } CoilMapping = coilMapping; }