Ejemplo n.º 1
0
        public void InitializeValidator()
        {
            var originalGroup = this.AddFavorite(NameValidatorTestLab <IFavorite> .ORIGINAL_NAME);
            var validator     = new FavoriteNameValidator(this.Persistence);

            this.testLab = new NameValidatorTestLab <IFavorite>(validator, originalGroup, FavoriteNameValidator.NOT_UNIQUE);
        }
Ejemplo n.º 2
0
 public FavoriteRenameCommand(IPersistence persistence, IRenameService service)
 {
     this.persistence = persistence;
     this.service     = service;
     this.favorites   = persistence.Favorites;
     this.validator   = new FavoriteNameValidator(this.persistence);
 }
 public FavoriteRenameCommand(IPersistence persistence, IRenameService service)
 {
     this.persistence = persistence;
     this.service = service;
     this.favorites = persistence.Favorites;
     this.validator = new FavoriteNameValidator(this.persistence);
 }
Ejemplo n.º 4
0
 public NewTerminalFormValidator(IPersistence persistence, ConnectionManager connectionManager, INewTerminalForm form)
 {
     this.persistence       = persistence;
     this.validator         = persistence.Factory.CreateValidator();
     this.nameValidator     = new FavoriteNameValidator(persistence);
     this.form              = form;
     this.connectionManager = connectionManager;
 }
 public void InitializeValidator()
 {
     var originalGroup = this.AddFavorite(NameValidatorTestLab<IFavorite>.ORIGINAL_NAME);
     var validator = new FavoriteNameValidator(this.Persistence);
     this.testLab = new NameValidatorTestLab<IFavorite>(validator, originalGroup, FavoriteNameValidator.NOT_UNIQUE);
 }
 public NewTerminalFormValidator(IPersistence persistence, INewTerminalForm form)
 {
     this.persistence = persistence;
     this.nameValidator = new FavoriteNameValidator(persistence);
     this.form = form;
 }