Exemplo n.º 1
0
        public void SetUp()
        {
            var person = new Person()
            {
                Firstname  = "max",
                CreditCard = "1asdf2",
                Age        = 10,
                Cars       = new List <Car>()
                {
                    new Car()
                    {
                        Manufacturer = "Audi", Age = 100
                    }
                }
            };

            var validator = new PersonValidator();

            this.Result = validator.Validate(person);
        }
Exemplo n.º 2
0
        public void TestFixtureSetUp()
        {
            var person = new Person
            {
                Firstname  = "max",
                CreditCard = "1asdf2",
                Email      = "email",
                Age        = 27,
                Weight     = 53.7,
                Cars       = new List <Car> {
                    new Car {
                        Manufacturer = "Audi", Age = 100
                    }
                }
            };

            var validator = new PersonValidator();

            Result = validator.Validate(person);
        }