public void GetByID_RetrieveItem_ItemRetrieved()
        {
            // arrange
            InMemoryPackageRepository inmemorypackagerepository = new InMemoryPackageRepository();
            inmemorypackagerepository.Add(new Package(1, "Name", "Adress", "Receiver", "TargetAdress", 1, "City", "Country", "1010", "Street"));

            // act
            Package package = inmemorypackagerepository.GetById(1);

            // assert
            Assert.AreEqual(package.PackageID, 1);
        }
        public void Delete_DeleteItem_ItemRemoved()
        {
            // arrange
            InMemoryPackageRepository inmemorypackagerepository = new InMemoryPackageRepository();
            inmemorypackagerepository.Add(new Package(1, "Name", "Adress", "Receiver", "TargetAdress", 1, "City", "Country", "1010", "Street"));

            // act
            inmemorypackagerepository.Delete(new Package(1, "NewName", "Adress", "Receiver", "TargetAdress", 1, "City", "Country", "1010", "Street"));

            // assert
            Assert.IsNull(inmemorypackagerepository.GetById(1));
        }
        public void Update_ItemName_UpdatedName()
        {
            // arrange
            InMemoryPackageRepository inmemorypackagerepository = new InMemoryPackageRepository();
            inmemorypackagerepository.Add(new Package(1, "Name", "Adress", "Receiver", "TargetAdress", 1, "City", "Country", "1010", "Street"));

            // act
            inmemorypackagerepository.Update(new Package(1, "NewName", "Adress", "Receiver", "TargetAdress", 1, "City", "Country", "1010", "Street"));

            // assert
            Assert.AreEqual(inmemorypackagerepository.GetById(1).Sender, "NewName");
        }