protected override void RegisterFakesInConfiguration(EnvironmentConfigurationWrapper configuration) { configuration.Register <IInvoiceAutoNumberGenerator>(new FakeInvoiceNumberGenerator()); configuration.Register <ICustomerRepository>(new FakeCustomerRepository()); configuration.Register <IOrganizationRepository>(new FakeOrganizationRepository()); configuration.Register <IExchangeRateRepository>(new FakeExchangeRateRepository()); }
private void ReconfigureEnvironment() { _configuration = new EnvironmentConfigurationWrapper(); _configuration.Register <IEventStore>(_eventStore); _configuration.Register <IEventBus>(_eventBus); RegisterFakesInConfiguration(_configuration); _configuration.Push(); }
protected override void RegisterFakesInConfiguration(EnvironmentConfigurationWrapper configuration) { var clock = new FrozenClock(now); configuration.Register <IClock>(clock); }
protected virtual void RegisterFakesInConfiguration(EnvironmentConfigurationWrapper configuration) { }
protected virtual void SetupDependencies() { _configuration = new EnvironmentConfigurationWrapper(); RegisterFakesInConfiguration(_configuration); _configuration.Push(); }