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); }
public test() { Country c = new Country(); // Captured! c.AddState(new State { Code = "US", Name = "United States" }); }