Ejemplo n.º 1
0
        private Robot(RobotId id, RobotImported e)
            : base(id)
        {
            SerialNumber = new SerialNumber(e.Entity.C2RurName);
            Product      = e.Entity.RobotProduct();

            Registrations = ImmutableList <RobotRegistration> .Empty;
            ImportRegistrations(e);
        }
Ejemplo n.º 2
0
 private void Apply(RobotImported e)
 {
     SerialNumber = new SerialNumber(e.Entity.C2RurName);
     ImportRegistrations(e);
 }