Ejemplo n.º 1
0
        private static async Task PrintRobotAsync(IRobotStore store, RobotId robotId)
        {
            var robot = await store.AggregateAsync(robotId);

            var registeredRobot = new RegisteredRobot(robot !, robot !.LatestRegistration !);

            Console.WriteLine(JsonConvert.SerializeObject(registeredRobot, Formatting.Indented, new StringEnumConverter()));
        }