Наследование: TestableDatabase
Пример #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));
        }
Пример #2
0
 public LeisureStarWebUI(Uri url, BrowserVisibility visibility, LeisureStarDatabase db)
     : base(url, visibility)
 {
     this.DB = db;
 }