Example #1
0
        public void Test()
        {
            var generator = new ArgumentsPositionsGenerator(
                new WrappedRandomNumberGenerator(new RNGCryptoServiceProvider()));

            var result = generator.Generate(3, 2);
        }
        private static void Prepare()
        {
            var randomNumberGenerator        = new RNGCryptoServiceProvider();
            var wrappedRandomNumberGenerator = new WrappedRandomNumberGenerator(randomNumberGenerator);
            var stringGenerator             = new StringGenerator(wrappedRandomNumberGenerator);
            var templateBuilder             = new TemplateBuilder(stringGenerator);
            var argumentsPositionsGenerator = new ArgumentsPositionsGenerator(wrappedRandomNumberGenerator);

            templateListGenerator = new TemplateListGenerator(templateBuilder, argumentsPositionsGenerator);
            aes16Encryptor        = new Aes16Encryptor();

            //if (File.Exists(TemplateFileName))
            //    File.Delete(TemplateFileName);
            //if (File.Exists(PlainCipherFileName))
            //    File.Delete(PlainCipherFileName);
        }