Exemplo n.º 1
0
        public void AppController_Dashboard_ShouldCallGetAmazonDashboardModel()
        {
            var from = DateTime.Now.AddDays(-7);
            var to   = DateTime.Now;

            var result = _appController.Dashboard(from, to);

            A.CallTo(() => _amazonAnalyticsService.GetAmazonDashboardModel(from, to)).MustHaveHappened();
        }
 public ViewResult Dashboard(DateTime?filterFrom, DateTime?filterUntil)
 {
     return(View(_amazonAnalyticsService.GetAmazonDashboardModel(filterFrom, filterUntil)));
 }