Example #1
0
 public LdapAuthenticationModeController(ILdapAuthenticationModeService authenticationModeService, IOrderByHelper orderByHelper, IPaginationHelper paginationHelper, IMapper mapper)
 {
     this.authenticationModeService = authenticationModeService;
     this.orderByHelper             = orderByHelper;
     this.paginationHelper          = paginationHelper;
     this.mapper = mapper;
 }
        public LdapAuthenticationModeController_Tests()
        {
            ldapAuthenticationModeService = Substitute.For <ILdapAuthenticationModeService>();
            orderByHelper    = Substitute.For <IOrderByHelper>();
            paginationHelper = Substitute.For <IPaginationHelper>();

            var config = new MapperConfiguration(cfg =>
            {
                cfg.AddProfile(new LdapAuthenticationModeResourceLdapAuthenticationModeModelProfile());
            });

            mapper = config.CreateMapper();
        }
 public LdapAuthenticationModeController(ILdapAuthenticationModeService authenticationModeService)
 {
     this.authenticationModeService = authenticationModeService;
 }