Пример #1
0
        public bool should_validate_correctly(string address)
        {
            var validator = new ListValidator(
                new AuRaParameters.Validator()
            {
                Addresses = new[] { new Address(Include1), new Address(Include2), }
            });

            return(validator.IsValidSealer(new Address(address)));
        }
Пример #2
0
        public bool should_validate_correctly(string address, long index)
        {
            _logManager = Substitute.For <ILogManager>();
            var validator = new ListValidator(
                new AuRaParameters.Validator()
            {
                Addresses = new[] { new Address(Include1), new Address(Include2), }
            }, _logManager);

            return(validator.IsValidSealer(new Address(address), index));
        }