public void ReturnCityWhenStateNotPresent() { // arrange var model = new CampaignViewModel(); // act model.Location = new Models.Location { City = "HappyTown" }; // assert Assert.Equal("HappyTown", model.LocationSummary); }
public void ReturnStateWhenCityNotPresent() { // arrange var model = new CampaignViewModel(); // act model.Location = new Models.Location { State = "Utopia" }; // assert Assert.Equal("Utopia", model.LocationSummary); }
public void ReturnCityAndStateWhenBothArePresent() { // arrange var model = new CampaignViewModel(); // act model.Location = new Models.Location { City = "HappyTown", State = "Utopia" }; // assert Assert.Equal("HappyTown, Utopia", model.LocationSummary); }