Created
July 9, 2015 20:58
-
-
Save angelovstanton/90b70333c351a6e83ef3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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