Ejemplo n.º 1
0
 public SneakerModel(string name, SneakerBrand brand) : this(name)
 {
     Brand = brand;
     var predictedBase = name?.Split(new[] { ' ', '_', '-' }, StringSplitOptions.RemoveEmptyEntries)[0];
     if (predictedBase != name)
     {
         BaseModel = new SneakerModel(predictedBase, brand);
     }
 }
Ejemplo n.º 2
0
 public bool Equals(SneakerModel other) => other != null && UniqueID == other.UniqueID;