コード例 #1
0
ファイル: Robot.cs プロジェクト: Nillerr/EventSourcing.Demo
        private Robot(RobotId id, RobotImported e)
            : base(id)
        {
            SerialNumber = new SerialNumber(e.Entity.C2RurName);
            Product      = e.Entity.RobotProduct();

            Registrations = ImmutableList <RobotRegistration> .Empty;
            ImportRegistrations(e);
        }
コード例 #2
0
ファイル: Robot.cs プロジェクト: Nillerr/EventSourcing.Demo
 private void Apply(RobotImported e)
 {
     SerialNumber = new SerialNumber(e.Entity.C2RurName);
     ImportRegistrations(e);
 }