예제 #1
0
 protected override void OnSetup()
 {
     base.OnSetup();
     this.fakeCreator = A.Fake <IFakeCreatorFacade>();
     this.StubResolve(this.fakeCreator);
     this.scope = Fake.CreateScope();
 }
예제 #2
0
 protected override void OnSetup()
 {
     base.OnSetup();
     this.fakeCreator = A.Fake<IFakeCreatorFacade>();
     this.StubResolve(this.fakeCreator);
     this.scope = Fake.CreateScope();
 }
예제 #3
0
        protected override void OnSetUp()
        {
            this.fakeCreator = A.Fake <IFakeCreatorFacade>(x => x.Wrapping(ServiceLocator.Current.Resolve <IFakeCreatorFacade>()));
            this.startConfigurationFactory = A.Fake <IStartConfigurationFactory>(x => x.Wrapping(ServiceLocator.Current.Resolve <IStartConfigurationFactory>()));

            this.StubResolve <IFakeCreatorFacade>(this.fakeCreator);
            this.StubResolve <IStartConfigurationFactory>(this.startConfigurationFactory);
        }
예제 #4
0
        protected override void OnSetUp()
        {
            this.fakeCreator = A.Fake<IFakeCreatorFacade>(x => x.Wrapping(ServiceLocator.Current.Resolve<IFakeCreatorFacade>()));
            this.startConfigurationFactory = A.Fake<IStartConfigurationFactory>(x => x.Wrapping(ServiceLocator.Current.Resolve<IStartConfigurationFactory>()));

            this.StubResolve<IFakeCreatorFacade>(this.fakeCreator);
            this.StubResolve<IStartConfigurationFactory>(this.startConfigurationFactory);
        }