Example #1
0
 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());
 }
Example #2
0
 private void ReconfigureEnvironment()
 {
     _configuration = new EnvironmentConfigurationWrapper();
     _configuration.Register <IEventStore>(_eventStore);
     _configuration.Register <IEventBus>(_eventBus);
     RegisterFakesInConfiguration(_configuration);
     _configuration.Push();
 }
Example #3
0
        protected override void RegisterFakesInConfiguration(EnvironmentConfigurationWrapper configuration)
        {
            var clock = new FrozenClock(now);

            configuration.Register <IClock>(clock);
        }
Example #4
0
 protected virtual void RegisterFakesInConfiguration(EnvironmentConfigurationWrapper configuration)
 {
 }
Example #5
0
 protected virtual void SetupDependencies()
 {
     _configuration = new EnvironmentConfigurationWrapper();
     RegisterFakesInConfiguration(_configuration);
     _configuration.Push();
 }