Exemple #1
0
        public void ShouldCallPackageUpdater()
        {
            const string key             = "key";
            const string packageId       = "id";
            const string packageVersion  = "version";
            var          packageToUpdate = new Package();

            PackageService.Update(key, packageId, packageVersion, packageToUpdate);

            MockedPackageUpdater.Verify(pu => pu.UpdateExistingPackage(packageToUpdate), Times.Once(),
                                        "Package updater should have been invoked.");
        }