public void Initialize() { _memoryEventStore = new MemoryEventStore(); _quizUseCases = new QuizUseCases(_memoryEventStore); _processManager = new QuizCreationCancellationPolicy(_quizUseCases); _memoryEventStore.SubscribeToAll(_processManager.HandleEvent); }
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); }
public void Initialize() { _memoryEventStore = new MemoryEventStore(); Subject = new QuizCreationCancellationPolicy(new QuizUseCases(_memoryEventStore)); _memoryEventStore.SubscribeToAll(Subject.HandleEvent); }