public void SetUp()
        {
            serviceTicketRepo = Substitute.For<IServiceTicketRepository>();
            messageRepo = Substitute.For<IMessageRepository>();
            alertRepo = Substitute.For<IAlertRepository>();
            scheduleItemRepo = Substitute.For<IScheduleItemRepository>();

            controller = new HomeController(
                serviceTicketRepo,
                messageRepo,
                alertRepo,
                scheduleItemRepo
            );
        }
        public void IndexReturnsNonNullView()
        {
            var serviceTicketRepo = new DynamicMock(typeof(IServiceTicketRepository));
            var messageRepo = new DynamicMock(typeof(IMessageRepository));
            var alertRepo = new DynamicMock(typeof(IAlertRepository));
            var scheduleItemRepo = new DynamicMock(typeof(IScheduleItemRepository));

            var controller = new HomeController(
                serviceTicketRepo.MockInstance as IServiceTicketRepository,
                messageRepo.MockInstance as IMessageRepository,
                alertRepo.MockInstance as IAlertRepository,
                scheduleItemRepo.MockInstance as IScheduleItemRepository
            );

            var result = (ViewResult)controller.Index();
        }