/// <summary> /// Returns a copy of the instance of ControlledUpdateThing /// </summary> /// <remarks> /// Overrides the base version, but calls OnClone to allow base classes chance /// to clone their information /// </remarks> public override object Clone() { // All of the value types are cloned using memberwise clone ControlledUpdateThing clone = (ControlledUpdateThing)this.MemberwiseClone(); // Copy any other instances which are not known about by myGen OnClone(clone); // Return our pristine clone! return(clone); }
/// <summary> /// Compare two ControlledUpdateThing entities /// </summary> /// <param name="expected"></param> /// <param name="actual"></param> public static void Compare(ControlledUpdateThing expected, ControlledUpdateThing actual) { // Check for nulls if (expected == null && actual == null) { return; } if (expected == null) { Assert.Fail("Expected null, got ControlledUpdateThing"); } if (actual == null) { Assert.Fail("Expected ControlledUpdateThing, got null"); } // Compare simple properties Assert.AreEqual(expected.Id, actual.Id, "ControlledUpdateThing.Id not equal"); Assert.AreEqual(expected.Name, actual.Name, "ControlledUpdateThing.Name not equal"); }
public ControlledUpdateThingEventArgs(ControlledUpdateThing controlledUpdateThing) { ControlledUpdateThing = controlledUpdateThing; }