void CreateAction (
			string packageId = "Test",
			string version = "2.1")
		{
			project = new FakeDotNetProject (@"d:\projects\MyProject\MyProject.csproj");
			solutionManager = new FakeSolutionManager ();
			nugetProject = new FakeNuGetProject (project);
			solutionManager.NuGetProjects[project] = nugetProject;

			var metadataResourceProvider = new FakePackageMetadataResourceProvider ();
			packageMetadataResource = metadataResourceProvider.PackageMetadataResource;
			var source = new PackageSource ("http://test.com");
			var providers = new INuGetResourceProvider[] {
				metadataResourceProvider
			};
			var sourceRepository = new SourceRepository (source, providers);
			primaryRepositories = new [] {
				sourceRepository
			}.ToList ();

			action = new TestableInstallNuGetPackageAction (
				primaryRepositories,
				solutionManager,
				project);

			packageManager = action.PackageManager;
			packageManagementEvents = action.PackageManagementEvents;
			fileRemover = action.FileRemover;

			action.PackageId = packageId;
			action.Version = new NuGetVersion (version);
		}
		protected override InstallNuGetPackageAction CreateInstallAction (
			IMonoDevelopSolutionManager solutionManager,
			IDotNetProject project,
			IEnumerable<SourceRepository> repositories)
		{
			InstallAction = new TestableInstallNuGetPackageAction (
				repositories,
				(FakeSolutionManager)solutionManager,
				(FakeDotNetProject)project);

			return InstallAction;
		}
        protected override InstallNuGetPackageAction CreateInstallAction(
            IMonoDevelopSolutionManager solutionManager,
            IDotNetProject project,
            IEnumerable <SourceRepository> repositories)
        {
            InstallAction = new TestableInstallNuGetPackageAction(
                repositories,
                (FakeSolutionManager)solutionManager,
                (FakeDotNetProject)project);

            return(InstallAction);
        }
		TestableInstallNuGetPackageAction AddInstallAction ()
		{
			var action = new TestableInstallNuGetPackageAction (
				new FakeSourceRepositoryProvider ().Repositories,
				new FakeSolutionManager (),
				new FakeDotNetProject ());

			action.PackageId = "Test";

			actions.Add (action);

			return action;
		}