private static FakeBus StickABusInIt(IPersistentStore store) { var bus = new FakeBus(); var depositDetector = new DepositDetector(new Repository<LabelDepositJob>(new EventStore(bus))); bus.RegisterHandler<FileDeposit>(depositDetector.Handle); var depositHandler = new DepositHandler(store); bus.RegisterHandler<DepositDetected>(depositHandler.Handle); return bus; }
private static FakeBus StickABusInIt(IPersistentStore store) { var bus = new FakeBus(); var depositDetector = new DepositDetector(new Repository <LabelDepositJob>(new EventStore(bus))); bus.RegisterHandler <FileDeposit>(depositDetector.Handle); var depositHandler = new DepositHandler(store); bus.RegisterHandler <DepositDetected>(depositHandler.Handle); return(bus); }