Ejemplo n.º 1
0
 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);
     }
 }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 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);
 }