Example #1
0
        public void Find_ReturnsCorrectItemFromDatabase_Parcel()
        {
            //Arrange
            ParcelVariable newParcel = new ParcelVariable(1, 2, 3, 4, "string");

            newParcel.Save();
            ParcelVariable newParcel2 = new ParcelVariable(1, 2, 3, 4, "string");

            newParcel2.Save();

            //Act
            ParcelVariable parcelFound = ParcelVariable.Find(newParcel.ID);

            //Assert
            Assert.AreEqual(newParcel, parcelFound);
        }