示例#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);
        }