Ejemplo n.º 1
0
 public void SpecifyHomeUniformColors(Color primary, Color secondary)
 {
     //would be interesting in another aggregate in this same bounded context
     //(but not necessarily the same microservice)
     //to validate a rule ensuring no two teams have the same color pair
     HomeColors = new UniformColors(primary, secondary);
 }
Ejemplo n.º 2
0
 public void SpecifyHomeUniformColors(Color shirt1, Color shirt2, Color shirt3, Color shorts1, Color shorts2, Color socks)
 {
     HomeColors = new UniformColors(shirt1, shirt2, shirt3, shorts1, shorts2, socks);
 }