protected override void OnSetup() { base.OnSetup(); this.fakeCreator = A.Fake <IFakeCreatorFacade>(); this.StubResolve(this.fakeCreator); this.scope = Fake.CreateScope(); }
protected override void OnSetup() { base.OnSetup(); this.fakeCreator = A.Fake<IFakeCreatorFacade>(); this.StubResolve(this.fakeCreator); this.scope = Fake.CreateScope(); }
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); }
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); }