public void Should_assertions()
        {
            // Dado / Setup

            var election         = new Election();
            var candidateRodrigo = new Candidates("Rodrigo", "000.123.452-00", 0);
            var candidateMaria   = new Candidates("Maria", "112.342.543-88", 0);

            var cantidatesList = new List <Candidates>()
            {
                candidateRodrigo, candidateMaria
            };

            //When

            election.CreateCandidates(cantidatesList, "Pa$$w0rd"); // cria-se candidatos

            var result = election.GetCandidateIdBycpf(candidateRodrigo.Cpf);

            // Should

            election.Candidates.ElementAt(0).ShouldBeType(typeof(Candidates));
            election.Candidates.ElementAt(0).Id.ShouldEqual(result);


            // object obj = null;
            // obj.ShouldBeNull();

            // obj = new object();

            // obj.ShouldNotBeNull();
            // obj.ShouldNotBeSameAs(new object());
            // obj.ShouldNotBeType(typeof(string));
            // obj.ShouldNotEqual("foo");

            // obj = "x";
            // obj.ShouldNotBeInRange("y", "z");
            // obj.ShouldBeInRange("a", "z");
            // obj.ShouldBeSameAs("x");

            // "This String".ShouldContain("This");
            // "This String".ShouldNotBeEmpty();
            // "This String".ShouldNotContain("foobar");

            // false.ShouldBeFalse();
            // true.ShouldBeTrue();

            // var list = new List<object>();
            // list.ShouldBeEmpty();
            // list.ShouldNotContain(new object());

            // var item = new object();
            // list.Add(item);
            // list.ShouldNotBeEmpty();
            // list.ShouldContain(item);
        }
        public void Should_return_True_if_Candidates_are_Null()
        {
            // Dado / Setup

            var election = new Election();
            var candidateRodrigo = new Candidate("Rodrigo", "764.122.990-50", 0);
            var candidateMaria = new Candidate("Maria", "486.869.430-80", 0);

            var cantidatesList = new List<Candidate>()
            {
                candidateRodrigo, candidateMaria
            };
            election.CreateCandidates(cantidatesList, "Pa$$w0rd"); // cria-se candidatos

            //When
            var result = election.GetCandidateIdBycpf(candidateRodrigo.Cpf);
            // Deve / Asserções
            election.Candidate.ElementAt(0).ShouldNotBeNull();

        }
        public void Should_return_True_if_Candidates_are_Null()
        {
            // Dado / Setup

            var election         = new Election();
            var candidateRodrigo = new Candidates("Rodrigo", "000.123.452-00", 0);
            var candidateMaria   = new Candidates("Maria", "112.342.543-88", 0);

            var cantidatesList = new List <Candidates>()
            {
                candidateRodrigo, candidateMaria
            };

            election.CreateCandidates(cantidatesList, "Pa$$w0rd"); // cria-se candidatos

            //When
            var result = election.GetCandidateIdBycpf(candidateRodrigo.Cpf);

            // Deve / Asserções
            election.Candidates.ElementAt(0).ShouldNotBeNull();
        }
        public void Should_return_Candidates_by_cpf()
        {
            // Dado / Setup

            var election = new Election();
            var candidateRodrigo = new Candidate("Rodrigo", "926.647.960-89", 0);
            var candidateMaria = new Candidate("Maria", "573.225.920-18", 0);

            var cantidatesList = new List<Candidate>()
            {
                candidateRodrigo, candidateMaria
            };
            election.CreateCandidates(cantidatesList, "Pa$$w0rd"); // cria-se candidatos

            //When
            var result = election.GetCandidateIdBycpf(candidateRodrigo.Cpf);
            // Deve / Asserções

            Assert.Equal(election.Candidate.ElementAt(0).Id, result);

        }