public DefaultObservationController(IManageFakes fakes_controller, TestStateFor <Class> test_state,
                                     ICreateAndManageDependenciesFor <Class> factory)
 {
     this.fakes_controller = fakes_controller;
     this.test_state       = test_state;
     this.factory          = factory;
 }
Exemplo n.º 2
0
        public ObservationController <Class> create_main_controller <Class, Engine>() where Class : class where Engine : IFakeEngine, new()
        {
            IManageFakes fakes_accessor = this.fakes_gateway_factory.create <Class, Engine>();
            IMarshalNonGenericFakeResolutionToAGenericResolution fakes_resolver = this.fakes_adapter_factory.create(fakes_accessor);
            ICreateAndManageDependenciesFor <Class> sut_factory = this.sut_factory_provider.create <Class>(fakes_resolver, fakes_accessor);

            return(new DefaultObservationController <Class, Engine>(fakes_accessor, test_state_factory.create_for(sut_factory),
                                                                    sut_factory));
        }
 public TestStateFor <SUT> create_for <SUT>(ICreateAndManageDependenciesFor <SUT> sut_factory) where SUT : class
 {
     return(new DefaultTestStateFor <SUT>(sut_factory, new List <ObservationPair>(),
                                          new List <SUTContextSetup <SUT> >()));
 }
 public TestStateFor <SUT> create_for <SUT>(ICreateAndManageDependenciesFor <SUT> sut_factory) where SUT : class
 {
     return(new DefaultTestStateFor <SUT>(sut_factory));
 }