Пример #1
0
 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}");
     }
 }
Пример #2
0
 public bool Equals(TargetInfo other)
 {
     return(Location.Equals(other.Location) && Type == other.Type && ModelId.Equals(other.ModelId) && Id.Equals(other.Id));
 }