Skip to content

Instantly share code, notes, and snippets.

@angelovstanton
Created December 3, 2016 11:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save angelovstanton/30bd804dbf86294d53cc9cba1c042c28 to your computer and use it in GitHub Desktop.
Save angelovstanton/30bd804dbf86294d53cc9cba1c042c28 to your computer and use it in GitHub Desktop.
[Binding]
public class ItemPageNavigationBehaviour : ActionBehaviour
{
private readonly ItemPage itemPage;
private string itemUrl;
public ItemPageNavigationBehaviour()
{
this.itemPage = UnityContainerFactory.GetContainer().Resolve<ItemPage>();
}
[When(@"I navigate to ""([^""]*)""")]
public void NavigateToItemUrl(string itemUrl)
{
this.itemUrl = itemUrl;
base.Execute();
}
protected override void PerformAct()
{
this.itemPage.Navigate(this.itemUrl);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment