Ejemplo n.º 1
0
 public RegisterActivity()
 {
     userService               = MainApplication.Container.Resolve <IUserService>();
     emailService              = MainApplication.Container.Resolve <IEmailService>();
     regularExpressionService  = MainApplication.Container.Resolve <IRegularExpressionService>();
     applicationSessionService = MainApplication.Container.Resolve <IApplicationSessionService>();
 }
Ejemplo n.º 2
0
    private static bool ValidatePostalCode(
        IRegularExpressionService regularExpressionService,
        IPostalCodeModel model,
        string country
        )
    {
        var regex = regularExpressionService.GetPostalCodeRegex(country);

        return(Regex.IsMatch(model.PostalCode, regex));
    }
 public PostalCodeValidator(IRegularExpressionService regularExpressionService)
 {
     _regularExpressionService = regularExpressionService;
 }
 public RegularExpressionController(IRegularExpressionService regularExpressionService)
 {
     _regularExpressionService = regularExpressionService;
 }
 public RegularExpressionController(IRegularExpressionService regularExpressionService,
                                    ILogger <RegularExpressionController> logger)
 {
     _regularExpressionService = regularExpressionService;
     _logger = logger;
 }