コード例 #1
0
        public void TestTabsConstructForDeveloperMode()
        {
            var mainTabViewModel = new MainTabViewModel(new UserInfo(){Role = Roles.Developer});
            var tabs = mainTabViewModel.Tabs;

            Assert.AreEqual(tabs.Count, 5);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
 private void InitializeApplication()
 {
     this._mainTabViewModel = new MainTabViewModel();
     this.mainTabCtrl.DataContext = this._mainTabViewModel;
 }