Example #1
0
        public Startup()
        {
            MemoryEventStore = new MemoryEventStore();
            QuizUseCases     = new QuizUseCases(MemoryEventStore);
            ProcesManager    = new QuizCreationCancellationPolicy(QuizUseCases);
            var r = new RegisteredPlayers();

            MemoryEventStore.SubscribeToAll(ProcesManager.HandleEvent);
            MemoryEventStore.SubscribeToAll(r.HandleEvent);
        }
Example #2
0
 public void Initialize()
 {
     _memoryEventStore = new MemoryEventStore();
     _quizUseCases     = new QuizUseCases(_memoryEventStore);
     _processManager   = new QuizCreationCancellationPolicy(_quizUseCases);
     _memoryEventStore.SubscribeToAll(_processManager.HandleEvent);
 }
Example #3
0
 public void Initialize()
 {
     _memoryEventStore = new MemoryEventStore();
     Subject           = new QuizCreationCancellationPolicy(new QuizUseCases(_memoryEventStore));
     _memoryEventStore.SubscribeToAll(Subject.HandleEvent);
 }
Example #4
0
 public void Initialize()
 {
     Subject           = new RegisteredPlayers();
     _memoryEventStore = new MemoryEventStore();
     _memoryEventStore.SubscribeToAll(Subject.HandleEvent);
 }