public void TestReceivePackage_Successfully() { MockPackageRepository myMockPackageRepo = new MockPackageRepository(); PackageService packageService = new PackageService(myMockPackageRepo); Package package1 = MockDataAccess.GetPackage(3); DistributionCentre myReceiverCentre = MockDataAccess.GetDistributionCentre(3); int newTransitId = InsertMockTransit(package1, 2, 3); // insert transit packageService.Receive(package1.BarCode, myReceiverCentre, DateTime.Today); PackageTransit finishedTransit = MockDataAccess.GetPackageTransit(newTransitId); Debug.WriteLine(finishedTransit.ToString()); Assert.IsTrue(finishedTransit.ReceiverCentre == myReceiverCentre); }