public void CheckBalance_ViewData_IsBudget()
 {
     SupervisorController controller = new SupervisorController(mockEmployeeService, mockReportService, mockEmployee, mockBudgetService);
     MockHttpContext.SetFakeHttpContext(controller);
     var result = controller.CheckBalance() as ViewResult;
     Assert.IsInstanceOfType(result.ViewData.Model, typeof(Budget));
 }
        public void CheckBalance_Returns_View_CheckBalance()
        {
            const string expectedViewName = "CheckBalance";
            SupervisorController controller = new SupervisorController(mockEmployeeService, mockReportService, mockEmployee, mockBudgetService);
            MockHttpContext.SetFakeHttpContext(controller);

            var result = controller.CheckBalance() as ViewResult;

            Assert.AreEqual(expectedViewName, result.ViewName, "View names do not match, expected view name is{0}", expectedViewName);
        }