本文整理汇总了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);
}
示例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);
}