Esempio n. 1
0
        static void Main(string[] args)
        {
            //Intro();
            string sentence = "My name is Neslihan Kuş Göymener";

            var result  = sentence.Length;
            var result2 = sentence.Clone();

            sentence = "My name is Murat Göymener";

            boll result3 = sentence.EndsWith("ğ");
            boll result4 = sentence.StartsWith("My name");

            var result5 = sentence.IndexOf("name");

            var.result6 = sentence.IndexOf(" ");

            Console.WriteLine(result6);
            Console.ReadLine();
        }
        public Doacao DoacaoValida(bool emailInvalido = false, double?valor = 5, bool maxLenghField = false, boll aceitaTaxa = false)
        {
            var faker = new Faker <Doacao>("pt_BR");

            const int MIN_VALUE = 1;
            const int MAX_VALUE = 500;
            const int DECIMALS  = 2;

            faker.CustomInstantiator(f => new Doacao(Guid.Empty, Guid.Empty, Guid.Empty, valor ?? (double)f.Finance.Amount(MIN_VALUE, MAX_VALUE, DECIMALS),
                                                     PessoaValida(emailInvalido, maxLenghField), null, null));

            return(faker.Generate());
        }