public void ShouldAskToInitializeEveryNestedPageObjectWhenInitializingContextWrapper() { var contextWrapper = new PageObjectA(_searchContext); _factory.Init(contextWrapper); VerifyMemberInitializationRequestsWereMade(contextWrapper); }
public void ShouldAskToInitializeEveryNestedPageObjectWhenInitializingContextWrapper() { var contextWrapper = new PageObjectA(_searchContext); _factory.Init(contextWrapper); VerifyMemberInitializationRequestsWereMade(contextWrapper); }
public void ShouldAskToInitializeEveryNestedPageObjectWhenInitializingPageObject() { var pageObjectA = new PageObjectA(_searchContext); _factory.Init(pageObjectA, _searchContext); VerifyPageObjectCreated(pageObjectA); VerifyMemberInitializationRequestsWereMade(_searchContext); }
private void VerifyPageObjectCreated(PageObjectA pageObject) { Assert.That(pageObject, Is.Not.Null); Assert.That(pageObject.PageObjectFactory, Is.Not.Null.And.SameAs(_factory)); }