public void StartDeployment_WhenDeploymentTaskIsNull_ThrowsArgumentNullException()
        {
            var environmentInfoRepositoryFake = new Mock<IEnvironmentInfoRepository>(MockBehavior.Loose);

              var pipeline = new DeploymentPipeline();

              Assert.Throws<ArgumentNullException>(() => pipeline.StartDeployment(null, new DeploymentContext("requester")));
              Assert.Throws<ArgumentNullException>(() => pipeline.StartDeployment(new DummyDeploymentTask(environmentInfoRepositoryFake.Object, "env"), null));
        }
        public void StartDeployment_WhenDeploymentTaskIsNull_ThrowsArgumentNullException()
        {
            var projectInfoRepositoryFake = new Mock<IProjectInfoRepository>(MockBehavior.Loose);
              var environmentInfoRepositoryFake = new Mock<IEnvironmentInfoRepository>(MockBehavior.Loose);

              var pipeline = new DeploymentPipeline();

              var deploymentInfo = DeploymentInfoGenerator.GetNtServiceDeploymentInfo();

              Assert.Throws<ArgumentNullException>(() => pipeline.StartDeployment(null, new DummyDeploymentTask(projectInfoRepositoryFake.Object, environmentInfoRepositoryFake.Object), new DeploymentContext("requester")));
              Assert.Throws<ArgumentNullException>(() => pipeline.StartDeployment(deploymentInfo, null, new DeploymentContext("requester")));
              Assert.Throws<ArgumentNullException>(() => pipeline.StartDeployment(deploymentInfo, new DummyDeploymentTask(projectInfoRepositoryFake.Object, environmentInfoRepositoryFake.Object), null));
        }