public override bool Equals(System.Object otherVenue) { if (!(otherVenue is Venue)) { return(false); } else { Venue newVenue = (Venue)otherVenue; bool idEquality = (this.GetId() == newVenue.GetId()); bool nameEquality = (this.GetName() == newVenue.GetName()); return(idEquality && nameEquality); } }
public void T6_Update_UpdatesVenueInDatabase() { //Arrange string name = "Pheonix"; Venue testVenue = new Venue(name); testVenue.Save(); string newName = "Rock Candy"; //Act testVenue.Update(newName); string result = testVenue.GetName(); //Assert Assert.Equal(newName, result); }