Advertisement
Guest User

Untitled

a guest
Jul 29th, 2015
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. public abstract class BasePageSingletonDerived<S, M> : ThreadSafeNestedContructorsBaseSingleton<S>
  2. where M : BasePageElementMap, new()
  3. where S : BasePageSingletonDerived<S, M>
  4. {
  5. protected M Map
  6. {
  7. get
  8. {
  9. return new M();
  10. }
  11. }
  12.  
  13. public virtual void Navigate(string url = "")
  14. {
  15. Driver.Browser.Navigate().GoToUrl(string.Concat(url));
  16. }
  17. }
  18.  
  19. public abstract class BasePageSingletonDerived<S, M, V> : BasePageSingletonDerived<S, M>
  20. where M : BasePageElementMap, new()
  21. where V : BasePageValidator<M>, new()
  22. where S : BasePageSingletonDerived<S, M, V>
  23. {
  24. public V Validate()
  25. {
  26. return new V();
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement