Ejemplo n.º 1
0
        public Country GenerateInvalidCountryWithStates()
        {
            var country      = new Country(Guid.NewGuid(), "");
            var stateFixture = new StateTestFixture();

            country.AddState(stateFixture.GenerateInvalidState());
            country.AddState(stateFixture.GenerateInvalidState());
            country.AddState(stateFixture.GenerateInvalidState());

            return(country);
        }
Ejemplo n.º 2
0
        public test()
        {
            Country c = new Country();

            // Captured!
            c.AddState(new State {
                Code = "US", Name = "United States"
            });
        }