public void Setup() { using (var db = new KcsarContext()) { Guid empty = Guid.Empty; this.memberId = db.Members.Where(f => f.TrainingAwards.Count > 1 && f.Id != empty).First().Id; } try { this.browser = UIAutomation.GetAdminBrowser(); this.browser.NavigateToPath("/Members/Detail/" + this.memberId.ToString()); } catch { UIAutomation.Shutdown(); throw; } }
public void TearDown() { UIAutomation.Shutdown(); }