public void TestTypeIdsAreEquatable() { var tid1 = new TypeId(1); var tida = new TypeId(1); var tid2 = new TypeId(2); var tidb = new TypeId(2); Assert.That(tid1.Equals(tida)); Assert.That(tid2.Equals(tidb)); Assert.That(!tid1.Equals(tid2)); Assert.That(!tid2.Equals(tida)); }
public override void Initialize(ref XElement thing) { base.Initialize(ref thing); Debug.Assert(TypeId.Equals(new Guid("227f55fb-1001-4d4e-9f6a-8d893e07b451")), "Expecting SimpleHbA1C thing type."); Debug.Assert(true, "SimpleHbA1C : InitializeFromThingType : Need to complete this method."); }
public override void Initialize(ref XElement thing) { base.Initialize(ref thing); Debug.Assert(TypeId.Equals(new Guid("85a21ddb-db20-4c65-8d30-33c899ccf612")), "Expecting exercise thing type."); Debug.Assert(true, "SimpleExercise : InitializeFromThingType : Need to complete this method."); }
public override void Initialize(ref XElement thing) { base.Initialize(ref thing); Debug.Assert(TypeId.Equals(new Guid("7ea7a1f9-880b-4bd4-b593-f5660f20eda8")), "Expecting condition thing type."); Debug.Assert(true, "SimpleCondition : InitializeFromThingType : Need to complete this method."); }
public override void Initialize(ref XElement thing) { base.Initialize(ref thing); Debug.Assert(TypeId.Equals(new Guid("796c186f-b874-471c-8468-3eeff73bf66e")), "Expecting cholesterol thing type."); Debug.Assert(true, "SimpleCholesterol : InitializeFromThingType : Need to complete this method."); }
public override void Initialize(ref XElement thing) { base.Initialize(ref thing); Debug.Assert(TypeId.Equals(new Guid("40750a6a-89b2-455c-bd8d-b420a4cb500b")), "Expecting height thing type."); Debug.Assert(true, "SimpleHeight : InitializeFromThingType : Need to complete this method."); }
public override void Initialize(ref XElement thing) { base.Initialize(ref thing); Debug.Assert(TypeId.Equals(new Guid("ca3c57f4-f4c1-4e15-be67-0a3caf5414ed")), "Expecting blood pressure thing type."); Debug.Assert(true, "SimpleBloodPressure : InitializeFromThingType : Need to complete this method."); }
/// <summary> /// Returns true if Vocabulary instances are equal /// </summary> /// <param name="other">Instance of Vocabulary to be compared</param> /// <returns>Boolean</returns> public bool Equals(Vocabulary other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Id == other.Id || Id != null && Id.Equals(other.Id) ) && ( TypeId == other.TypeId || TypeId != null && TypeId.Equals(other.TypeId) ) && ( Code == other.Code || Code != null && Code.Equals(other.Code) ) && ( Description == other.Description || Description != null && Description.Equals(other.Description) )); }
/// <summary> /// <para>Overriden. Indicates whether the current object is equal to another object of the same type.</para> /// </summary> /// <returns> /// <para>true if the current object is equal to the <paramref name="other"/> parameter; otherwise, false.</para> /// </returns> /// <param name="other"> /// <para>An object to compare with this object.</para> /// </param> public bool Equals(ObjectReference other) { if (ReferenceEquals(other, null)) { return(false); } return(TypeId.Equals(other.TypeId) && ObjectId.Equals(other.ObjectId)); }
public override void Initialize(ref XElement thing) { base.Initialize(ref thing); Debug.Assert(TypeId.Equals(new Guid("879e7c04-4e8a-4707-9ad3-b054df467ce4")), "Expecting blood glucose thing type."); Debug.Assert(true, "SimpleBloodGlucose : InitializeFromThingType : Need to complete this method."); //MMOLL = bg.Value.Value; //MGDL = MMOLL * 18.0; }
public bool Equals(Tab other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(TypeId.Equals(other.TypeId)); }
/// <summary> /// Returns true if VehicleType instances are equal /// </summary> /// <param name="input">Instance of VehicleType to be compared</param> /// <returns>Boolean</returns> public bool Equals(VehicleType input) { if (input == null) { return(false); } return (( TypeId == input.TypeId || (TypeId != null && TypeId.Equals(input.TypeId)) ) && ( Profile == input.Profile || (Profile != null && Profile.Equals(input.Profile)) ) && ( Capacity == input.Capacity || Capacity != null && Capacity.SequenceEqual(input.Capacity) ) && ( SpeedFactor == input.SpeedFactor || (SpeedFactor != null && SpeedFactor.Equals(input.SpeedFactor)) ) && ( ServiceTimeFactor == input.ServiceTimeFactor || (ServiceTimeFactor != null && ServiceTimeFactor.Equals(input.ServiceTimeFactor)) ) && ( CostPerMeter == input.CostPerMeter || (CostPerMeter != null && CostPerMeter.Equals(input.CostPerMeter)) ) && ( CostPerSecond == input.CostPerSecond || (CostPerSecond != null && CostPerSecond.Equals(input.CostPerSecond)) ) && ( CostPerActivation == input.CostPerActivation || (CostPerActivation != null && CostPerActivation.Equals(input.CostPerActivation)) )); }
public override void Initialize(ref XElement thing) { base.Initialize(ref thing); Debug.Assert(TypeId.Equals(new Guid("3d34d87e-7fc1-4153-800f-f56592cb0d17"))); // must be weight type int year = (int)thing.Element("data-xml").Element("weight").Element("when").Element("date").Element("y"); int month = (int)thing.Element("data-xml").Element("weight").Element("when").Element("date").Element("m"); int day = (int)thing.Element("data-xml").Element("weight").Element("when").Element("date").Element("d"); int hour = (int)thing.Element("data-xml").Element("weight").Element("when").Element("time").Element("h"); int minute = (int)thing.Element("data-xml").Element("weight").Element("when").Element("time").Element("m"); int second = (int)thing.Element("data-xml").Element("weight").Element("when").Element("time").Element("m"); When = new DateTime(year, month, day, hour, minute, second); Value = (double)thing.Element("data-xml").Element("weight").Element("value").Element("kg"); Display = thing.Element("data-xml").Element("weight").Element("value").Element("display").Value; Display += thing.Element("data-xml").Element("weight").Element("value").Element("display").Attribute("units").Value; }
public bool Equals(Suggestion other) { return(TypeId.Equals(other.TypeId) && VideoId.Equals(other.VideoId)); }
public bool EqualsById(MathIdentifier otherPropertyId) { return(TypeId.Equals(otherPropertyId)); }
public bool EqualsById(IProperty other) { return(other != null && TypeId.Equals(other.TypeId)); }
public bool Equals(MarsDataType other) => other != null && TypeId.Equals(other.TypeId);
public bool EqualsById(MathIdentifier otherStructureId) { return(TypeId.Equals(otherStructureId)); }
public bool EqualsById(IValueStructure other) { return(other != null && TypeId.Equals(other.TypeId)); }
public bool Equals(Favourite other) { return(TypeId.Equals(other.TypeId) && VideoId.Equals(other.VideoId)); }