Inheritance: TestableDatabase
Exemplo n.º 1
0
        public BaseUITest()
        {
            DB = new LeisureStarDatabase(ConfigurationManager.ConnectionStrings["LeisureStarLevel1"].ConnectionString);

            string visibilityConfig = ConfigurationManager.AppSettings["BrowserVisibility"];
            BrowserVisibility visibility = !string.IsNullOrEmpty(visibilityConfig) ? (BrowserVisibility)Enum.Parse(typeof(BrowserVisibility), visibilityConfig) : BrowserVisibility.VisibleIfDebugging;
            Context = this.RegisterTestable(new LeisureStarWebUI(new Uri(ConfigurationManager.AppSettings["ApplicationBaseUrl"]), visibility, DB));
        }
Exemplo n.º 2
0
 public LeisureStarWebUI(Uri url, BrowserVisibility visibility, LeisureStarDatabase db)
     : base(url, visibility)
 {
     this.DB = db;
 }