public void TestTabsConstructForDeveloperMode() { var mainTabViewModel = new MainTabViewModel(new UserInfo(){Role = Roles.Developer}); var tabs = mainTabViewModel.Tabs; Assert.AreEqual(tabs.Count, 5); }
public void TestTabsConstructForOperatorMode() { var userInfo = new UserInfo() { Role = Roles.Operator }; UserManager.Instance.SetLoggedInUser(userInfo); var mainTabViewModel = new MainTabViewModel(userInfo); var tabs = mainTabViewModel.Tabs; Assert.AreEqual(tabs.Count, 2); }
private void InitializeApplication() { this._mainTabViewModel = new MainTabViewModel(); this.mainTabCtrl.DataContext = this._mainTabViewModel; }