public override void Given() { base.Given(); screenToOpen = new Mock<IScreen>().Object; screenSubject = Moq.Mock<IScreenSubject>(); screenSubject.Setup(x => x.CreateScreen(screenFactory)).Returns(screenToOpen); }
public override void Given() { base.Given(); screenToOpen = new Mock <IScreen>().Object; screenSubject = Moq.Mock <IScreenSubject>(); screenSubject.Setup(x => x.CreateScreen(screenFactory)).Returns(screenToOpen); }
public override void Given() { base.Given(); var activeScreen = screenToOpen = new Mock <IScreen>().Object; screenSubject = Moq.Mock <IScreenSubject>(); screenSubject.Setup(x => x.Matches(activeScreen)).Returns(true); screenCollection.SetupGet(x => x.Active).Returns(activeScreen); }
public override void Given() { base.Given(); inActiveScreen = newScreen = Moq.Mock<IScreen>(); screenSubject = Moq.Mock<IScreenSubject>(); screenSubject.Setup(x => x.Matches(inActiveScreen)).Returns(true); var someOtherScreen = Moq.Stub<IScreen>(); screenCollection.Setup(x => x.Active).Returns(someOtherScreen); screenCollection.SetupGet(x => x.AllScreens).Returns(new[] { someOtherScreen, inActiveScreen }); }
public override void Given() { base.Given(); inActiveScreen = newScreen = Moq.Mock <IScreen>(); screenSubject = Moq.Mock <IScreenSubject>(); screenSubject.Setup(x => x.Matches(inActiveScreen)).Returns(true); var someOtherScreen = Moq.Stub <IScreen>(); screenCollection.Setup(x => x.Active).Returns(someOtherScreen); screenCollection.SetupGet(x => x.AllScreens).Returns(new[] { someOtherScreen, inActiveScreen }); }