public virtual void TestFairSchedulerWebAppPage()
        {
            IList <RMAppState> appStates = Arrays.AsList(RMAppState.New, RMAppState.NewSaving,
                                                         RMAppState.Submitted);
            RMContext rmContext = MockRMContext(appStates);
            Injector  injector  = WebAppTests.CreateMockInjector <RMContext>(rmContext, new _Module_70
                                                                                 (rmContext));
            FairSchedulerPage fsViewInstance = injector.GetInstance <FairSchedulerPage>();

            fsViewInstance.Render();
            WebAppTests.FlushOutput(injector);
        }
        public virtual void TestFairSchedulerWebAppPageInInconsistentState()
        {
            IList <RMAppState> appStates = Arrays.AsList(RMAppState.New, RMAppState.NewSaving,
                                                         RMAppState.Submitted, RMAppState.Running, RMAppState.FinalSaving, RMAppState.Accepted
                                                         , RMAppState.Finished);
            RMContext rmContext = MockRMContext(appStates);
            Injector  injector  = WebAppTests.CreateMockInjector <RMContext>(rmContext, new _Module_110
                                                                                 (rmContext));
            FairSchedulerPage fsViewInstance = injector.GetInstance <FairSchedulerPage>();

            try
            {
                fsViewInstance.Render();
            }
            catch (Exception e)
            {
                NUnit.Framework.Assert.Fail("Failed to render FairSchedulerPage: " + StringUtils.
                                            StringifyException(e));
            }
            WebAppTests.FlushOutput(injector);
        }