private Robot(RobotId id, RobotImported e) : base(id) { SerialNumber = new SerialNumber(e.Entity.C2RurName); Product = e.Entity.RobotProduct(); Registrations = ImmutableList <RobotRegistration> .Empty; ImportRegistrations(e); }
private void Apply(RobotImported e) { SerialNumber = new SerialNumber(e.Entity.C2RurName); ImportRegistrations(e); }