Esempio 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);
     }
 }
Esempio n. 2
0
 public bool Equals(SneakerBrand other) => other != null && UniqueID == other.UniqueID;