Skip to content

Instantly share code, notes, and snippets.

@angelovstanton
Created July 9, 2015 20:58
Show Gist options
  • Save angelovstanton/90b70333c351a6e83ef3 to your computer and use it in GitHub Desktop.
Save angelovstanton/90b70333c351a6e83ef3 to your computer and use it in GitHub Desktop.
public abstract class BasePageSingletonDerived<S, M> : ThreadSafeNestedContructorsBaseSingleton<S>
where M : BasePageElementMap, new()
where S : BasePageSingletonDerived<S, M>
{
protected M Map
{
get
{
return new M();
}
}
public virtual void Navigate(string url = "")
{
Driver.Browser.Navigate().GoToUrl(string.Concat(url));
}
}
public abstract class BasePageSingletonDerived<S, M, V> : BasePageSingletonDerived<S, M>
where M : BasePageElementMap, new()
where V : BasePageValidator<M>, new()
where S : BasePageSingletonDerived<S, M, V>
{
public V Validate()
{
return new V();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment