Example #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);
        }
Example #2
0
        public test()
        {
            Country c = new Country();

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