private void ThrowIfModelHasInvalidId(TModel model) { if (false == ModelId.Equals(model.Id)) { throw new InvalidOperationException( "Model id is invalid." + $"{Environment.NewLine} The expected value: {ModelId}" + $"{Environment.NewLine} The actual value: {model.Id}"); } }
public bool Equals(TargetInfo other) { return(Location.Equals(other.Location) && Type == other.Type && ModelId.Equals(other.ModelId) && Id.Equals(other.Id)); }