当前位置: 首页>>代码示例>>C#>>正文


C# IProjectRepository.GetConfigurationDeploymentStep方法代码示例

本文整理汇总了C#中IProjectRepository.GetConfigurationDeploymentStep方法的典型用法代码示例。如果您正苦于以下问题:C# IProjectRepository.GetConfigurationDeploymentStep方法的具体用法?C# IProjectRepository.GetConfigurationDeploymentStep怎么用?C# IProjectRepository.GetConfigurationDeploymentStep使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IProjectRepository的用法示例。


在下文中一共展示了IProjectRepository.GetConfigurationDeploymentStep方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: AssertUpdatedStep

 private void AssertUpdatedStep(DeployStep result, DeployStep original, string newStepName, string newTaskTypeName, string newTaskOptionsJson, string newUserName, IProjectRepository sut)
 {
     Assert.IsNotNull(result);
     Assert.IsNotNullOrEmpty(result.Id);
     Assert.AreEqual(original.ProjectId, result.ProjectId);
     Assert.AreEqual(original.ParentId, result.ParentId);
     Assert.AreEqual(original.ParentType, result.ParentType);
     Assert.AreEqual(newStepName, result.StepName);
     Assert.AreEqual(newTaskTypeName, result.TaskTypeName);
     Assert.AreEqual(newTaskOptionsJson, result.TaskOptionsJson);
     Assert.AreEqual(original.CreatedByUserName, result.CreatedByUserName);
     AssertDateEqual(original.CreatedDateTimeUtc, result.CreatedDateTimeUtc);
     Assert.AreEqual(newUserName, result.UpdatedByUserName);
     AssertIsRecent(result.UpdatedDateTimeUtc);
      
     var dbItem = sut.GetConfigurationDeploymentStep(result.Id, result.ProjectId);
     AssertStep(result, dbItem);
 }
开发者ID:gsbastian,项目名称:Sriracha.Deploy,代码行数:18,代码来源:ProjectRepositoryConfigurationStepTests.cs

示例2: AssertCreatedStep

        private void AssertCreatedStep(DeployStep result, DeployConfiguration component, string stepName, string taskTypeName, string taskOptionsJson, IProjectRepository sut)
        {
            Assert.IsNotNull(result);
            Assert.IsNotNullOrEmpty(result.Id);
            Assert.AreEqual(component.ProjectId, result.ProjectId);
            Assert.AreEqual(component.Id, result.ParentId);
            Assert.AreEqual(EnumDeployStepParentType.Configuration, result.ParentType);
            Assert.AreEqual(stepName, result.StepName);
            Assert.AreEqual(taskTypeName, result.TaskTypeName);
            Assert.AreEqual(taskOptionsJson, result.TaskOptionsJson);
            Assert.IsNull(result.SharedDeploymentStepId);
            Assert.AreEqual(this.UserName, result.CreatedByUserName);
            AssertIsRecent(result.CreatedDateTimeUtc);
            Assert.AreEqual(this.UserName, result.UpdatedByUserName);
            AssertIsRecent(result.UpdatedDateTimeUtc);

            var dbItem = sut.GetConfigurationDeploymentStep(result.Id, result.ProjectId);
            AssertStep(result, dbItem);
        }
开发者ID:gsbastian,项目名称:Sriracha.Deploy,代码行数:19,代码来源:ProjectRepositoryConfigurationStepTests.cs


注:本文中的IProjectRepository.GetConfigurationDeploymentStep方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。