예제 #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;
 }