Example #1
0
 public AutoMocker(ServiceLocator serviceLocator)
 {
     ServiceLocator = serviceLocator;
     Container      = new AutoMockedContainer(ServiceLocator);
     Container.Configure(x => x.For <TTargetClass>().Use <TTargetClass>());
 }
 public RhinoAutoMocker(MockMode mockMode)
 {
     _serviceLocator = createLocator(mockMode);
     _container      = new AutoMockedContainer(_serviceLocator);
 }
Example #3
0
 public RhinoAutoMocker(MockMode mockMode)
 {
     ServiceLocator = createLocator(mockMode);
     Container      = new AutoMockedContainer(ServiceLocator);
     Container.Configure(x => x.For <T>().Use <T>());
 }