private void AssertScaleUnitNodesAreSame(ScaleUnitNode expected, ScaleUnitNode found)
        {
            if (expected == null)
            {
                Assert.Null(found);
            }
            else
            {
                Assert.True(FabricCommon.ResourceAreSame(expected, found));

                Assert.Equal(expected.BiosVersion, found.BiosVersion);
                Assert.Equal(expected.BmcAddress, found.BmcAddress);
                Assert.Equal(expected.CanPowerOff, found.CanPowerOff);
                if (expected.Capacity == null)
                {
                    Assert.Null(found.Capacity);
                }
                else
                {
                    Assert.Equal(expected.Capacity.Cores, found.Capacity.Cores);
                    Assert.Equal(expected.Capacity.MemoryGB, found.Capacity.MemoryGB);
                }
                Assert.Equal(expected.Model, found.Model);
                Assert.Equal(expected.PowerState, found.PowerState);
                Assert.Equal(expected.ScaleUnitName, found.ScaleUnitName);
                Assert.Equal(expected.ScaleUnitNodeStatus, found.ScaleUnitNodeStatus);
                Assert.Equal(expected.ScaleUnitUri, found.ScaleUnitUri);
                Assert.Equal(expected.SerialNumber, found.SerialNumber);
                Assert.Equal(expected.Vendor, found.Vendor);
            }
        }
        private void ValidateScaleUnitNode(ScaleUnitNode scaleUnitNode)
        {
            FabricCommon.ValidateResource(scaleUnitNode);

            Assert.NotNull(scaleUnitNode.CanPowerOff);
            Assert.NotNull(scaleUnitNode.Capacity);
            Assert.NotNull(scaleUnitNode.PowerState);
            Assert.NotNull(scaleUnitNode.ScaleUnitName);
            Assert.NotNull(scaleUnitNode.ScaleUnitNodeStatus);
            Assert.NotNull(scaleUnitNode.ScaleUnitUri);
        }