public void Activate_Should_Call_Impl_Activate() { using (UnitTestApplication.Start(TestServices.StyledWindow)) { var impl = new Mock <ITopLevelImpl>(); var target = new TestTopLevel(impl.Object); target.Activate(); impl.Verify(x => x.Activate()); } }
public void Activate_Should_Call_Impl_Activate() { using (Locator.CurrentMutable.WithResolver()) { this.RegisterServices(); var impl = new Mock<ITopLevelImpl>(); var target = new TestTopLevel(impl.Object); target.Activate(); impl.Verify(x => x.Activate()); } }
public void Activate_Should_Call_Impl_Activate() { using (PerspexLocator.EnterScope()) { RegisterServices(); var impl = new Mock <ITopLevelImpl>(); var target = new TestTopLevel(impl.Object); target.Activate(); impl.Verify(x => x.Activate()); } }
public void Activate_Should_Call_Impl_Activate() { using (PerspexLocator.EnterScope()) { RegisterServices(); var impl = new Mock<ITopLevelImpl>(); var target = new TestTopLevel(impl.Object); target.Activate(); impl.Verify(x => x.Activate()); } }
public void Activate_Should_Call_Impl_Activate() { using (Locator.CurrentMutable.WithResolver()) { RegisterServices(); var impl = new Mock <ITopLevelImpl>(); var target = new TestTopLevel(impl.Object); target.Activate(); impl.Verify(x => x.Activate()); } }
public void Activate_Should_Call_Impl_Activate() { using (UnitTestApplication.Start(TestServices.StyledWindow)) { var impl = new Mock<ITopLevelImpl>(); var target = new TestTopLevel(impl.Object); target.Activate(); impl.Verify(x => x.Activate()); } }