public SelfEmploymentsController(IMapService mapService, IPagerFactory pagerFactory, ISelfEmploymentService selfService)
            : base(mapService, pagerFactory)
        {
            Guard.WhenArgument <ISelfEmploymentService>(selfService, "selfService").IsNull().Throw();

            this.selfService = selfService;
        }
        public EmployeeAdminController(IMapService mapService, IPagerFactory pagerFactory, IEmployeeService employeeService)
            : base(mapService, pagerFactory)
        {
            Guard.WhenArgument <IEmployeeService>(employeeService, "employeeService").IsNull().Throw();

            this.employeeService = employeeService;
        }
Ejemplo n.º 3
0
        public BillsController(IMapService mapService, IPagerFactory pagerFactory, IRemunerationBillService billService)
            : base(mapService, pagerFactory)
        {
            Guard.WhenArgument <IRemunerationBillService>(billService, "billService").IsNull().Throw();

            this.billService = billService;
        }
Ejemplo n.º 4
0
        public UsersController(IMapService mapService, IPagerFactory pagerFactory, IUserService userService)
            : base(mapService, pagerFactory)
        {
            Guard.WhenArgument <IUserService>(userService, "userService").IsNull().Throw();

            this.userService = userService;
        }
Ejemplo n.º 5
0
        public BaseController(IMapService mapService, IPagerFactory pagerFactory)
        {
            Guard.WhenArgument <IMapService>(mapService, "mapService").IsNull().Throw();
            Guard.WhenArgument <IPagerFactory>(pagerFactory, "pagerFactory").IsNull().Throw();

            this.mapService   = mapService;
            this.pagerFactory = pagerFactory;
        }
Ejemplo n.º 6
0
        public void ThrowArgumentNullException_WhenParameterPagerFactoryIsNullable()
        {
            // Arrange
            var           mockedMapService   = new Mock <IMapService>();
            var           mockedUserService  = new Mock <IEmployeeService>();
            IPagerFactory mockedPagerFactory = null;

            // Act & Assert
            Assert.Throws <ArgumentNullException>(() => new EmployeeAdminController(mockedMapService.Object, mockedPagerFactory, mockedUserService.Object));
        }