Ejemplo n.º 1
0
 public UserDashboardApiController(IUserDashboardService service
                                   , ILogger <UserDashboardApiController> logger
                                   , IAuthenticationService <int> authService) : base(logger)
 {
     _service     = service;
     _authService = authService;
 }
Ejemplo n.º 2
0
        public DashboardController(ITripService tripService, IUserDashboardService userDashboardService)
        {
            Guard.WhenArgument(tripService, nameof(tripService)).IsNull().Throw();
            Guard.WhenArgument(userDashboardService, nameof(userDashboardService)).IsNull().Throw();

            this.tripService          = tripService;
            this.userDashboardService = userDashboardService;
        }
Ejemplo n.º 3
0
        public void Throw_ArgumentNullException_WithMessageContainUserDashboardService_WhenUserDashboardServiceIsNull()
        {
            // Arrange
            var mockedTripService = new Mock <ITripService>();
            IUserDashboardService userDashboardService = null;

            // Act and Assert
            Assert.That(() => new DashboardController(mockedTripService.Object, userDashboardService),
                        Throws.ArgumentNullException.With.Message.Contain(nameof(userDashboardService)));
        }
Ejemplo n.º 4
0
 public UserController(IProjectService projectService, IMappingService mappingService, IProjectSummaryService projectSummaryService,
                       ICookieHelper cookieHelper, IProjectResourceService projectResourceService, IActiveDirectoryService activeDirectoryService,
                       IProjectComplaintService projectComplaintService, IGenericService genericService, IPaymentDetailsService paymentDetailsService,
                       IChangeRequestDetailsService changeRequestDetailsService, IInfrastructureDetailsService infrastructureDetailsService,
                       IUserDashboardService userDashboardService, ITrackerHub itrackerHub
                       )
 {
     this._projectService               = projectService;
     this._mappingService               = mappingService;
     this._projectSummaryService        = projectSummaryService;
     this._cookieHelper                 = cookieHelper;
     this._projectResourceService       = projectResourceService;
     this._activeDirectoryService       = activeDirectoryService;
     this._projectComplaintService      = projectComplaintService;
     this._genericService               = genericService;
     this._paymentDetailsService        = paymentDetailsService;
     this._changeRequestDetailsService  = changeRequestDetailsService;
     this._infrastructureDetailsService = infrastructureDetailsService;
     this._userDashboardService         = userDashboardService;
     this._itrackerHub = itrackerHub;
 }