Ejemplo n.º 1
0
 public void Dependencies(ConfigurableBootstrapper.ConfigurableBoostrapperConfigurator cfg)
 {
     _Api    = _Api ?? new Mock <IApiService>(MockBehavior.Strict);
     _Deploy = _Deploy ?? new Mock <IDeploymentService>(MockBehavior.Strict);
     _OAuth  = _OAuth ?? new Mock <IOAuth>(MockBehavior.Strict);
     _Mail   = _Mail ?? new Mock <IMailService>(MockBehavior.Strict);
     cfg.Dependencies(_Api.Object, _Deploy.Object, _OAuth.Object, _Mail.Object);
 }
Ejemplo n.º 2
0
 private void LocalConfigure(ConfigurableBootstrapper.ConfigurableBoostrapperConfigurator with)
 {
     with.Dependency <IEmailService>(emailService = Substitute.For <IEmailService>());
     with.Dependency <DataContext>(dataContext    = TestDataContextFactory.Build());
     if (testSpecificConfiguration != null)
     {
         testSpecificConfiguration(with);
     }
 }