Ejemplo n.º 1
0
        private static Func <LaNinaPersonaMother, RoboPersona> FactoryFor(LaNinaPersona persona, ILogger logger)
        {
            switch (persona)
            {
            // Customer Personas
            case LaNinaPersona.HPCBenchmark:
                return(personaMother => new HPCBenchmark(personaMother, logger));

            default:
                throw new InvalidOperationException($"Unknown persona: {KnownProductNames.Rhapso}.{persona}");
            }
        }
Ejemplo n.º 2
0
 public static LaNinaPersonaMother MotherFor(LaNinaPersona persona, double targetNumberOfInteractionsPerMinute, ILogger logger)
 {
     return(new LaNinaPersonaMother(FactoryFor(persona, logger), targetNumberOfInteractionsPerMinute, $"{nameof(LaNina)}.{persona}"));
 }