Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement