UpdatePackagesAction CreateUpdatePackagesActionWithPackages(params IPackageFromRepository[] packages) { UpdatePackagesAction action = CreateUpdatePackagesAction(); action.AddPackages(packages); return(action); }
public void GetUpdatePackagesOperations_ActionPassed_ActionPassedToPackageManager() { CreateProject(); CreateUpdatePackagesAction(); var expectedPackages = new FakePackage[] { new FakePackage("Test") }; updatePackagesAction.AddPackages(expectedPackages); project.GetUpdatePackagesOperations(updatePackagesAction.Packages, updatePackagesAction); Assert.AreEqual(updatePackagesAction, fakePackageManager.SettingsPassedToGetUpdatePackageOperations); Assert.AreEqual(expectedPackages, fakePackageManager.PackagesPassedToGetUpdatePackageOperations); }