private static void SetupInMemoryESRepo(SimpleDependencyInjector container) { var esrepo = new InMemoryEmployeeEventSourceRepository(); container.BindToConstant <IEmployeeRepository>(esrepo); container.BindToConstant(esrepo); container.Get <IBus>().RegisterHandler <InMemoryEmployeeEventSourceRepository>(); }
private static void SetupRavenDbRegularRepo(SimpleDependencyInjector container) { container.BindToConstant <IEmployeeRepository>( new Payroll.Infrastructure.RavenDbEmployeeRepository.EmployeeRepository() ); container.BindToConstant(new EmployeeEventStore()); container.Get <IBus>().RegisterHandler <EmployeeEventStore>(); }
private static void SetupInMemoryRepo(SimpleDependencyInjector container) { container.BindToConstant <IEmployeeRepository>( new InMemoryEmployeeRepository() ); }
private static void SetupBus(SimpleDependencyInjector container) { var bus = new NaiveInMemoryBus(container); container.BindToConstant <IBus>(bus); }