public static T Create <T>(SeleniumService service, string rootDirectory)
            where T : SingleWorkflowInSelenium, new()
        {
            var wfObj = new T();

            wfObj.Initialize(service, rootDirectory);
            return(wfObj);
        }
Exemple #2
0
        static void Main(string[] args)
        {
            var rootDirectory = "Country";

            using (var service = new SeleniumService())
            {
                var ciaFactbook = ContainerFactory.Create <CIAWorldFactbook>(service, rootDirectory);
                ciaFactbook.Load();
            }
        }
Exemple #3
0
 public void Initialize(SeleniumService service, string rootDirectory)
 {
     this.service        = service;
     this.rootDirectory  = rootDirectory;
     fullRootWfDirectory = Path.Combine(Path.GetFullPath(rootDirectory), rootWfDirectory);
 }