public PartialViewResult Logs(int page = 1)
        {
            var model = new AmazonDashboardModel()
            {
                Logs = _amazonLogService.GetEntriesPaged(page, null, null, _siteSettings.DefaultPageSize)
            };

            return(PartialView(model));
        }
        public ViewResult Index(AmazonLogType?type, AmazonLogStatus?status, int page = 1)
        {
            var model = _amazonLogService.GetEntriesPaged(page, type, status, _siteSettings.DefaultPageSize);

            return(View(model));
        }
Beispiel #3
0
        public void LogsController_Index_ShouldCallSearch()
        {
            var result = _logsController.Index(null, null);

            A.CallTo(() => _amazonLogService.GetEntriesPaged(1, null, null, 10)).MustHaveHappened();
        }
Beispiel #4
0
        public void AppController_DashboardLogs_ShouldCallGetEntriesPaged()
        {
            var result = _appController.Logs(1);

            A.CallTo(() => _amazonLogService.GetEntriesPaged(1, null, null, _siteSettings.DefaultPageSize)).MustHaveHappened();
        }