private void InitializeTestDtos()
        {
            dockerChocolateyResourceDto = new ChocolateyPackageDto
            {
                ResourceName          = "cChocoPackageInstaller",
                ChocolateyPackageName = "docker-for-windows",
                ResourceStepName      = "dockerStep",
                Ensure = Ensure.Present
            };

            visualStudioChocolateyResourceDto = new ChocolateyPackageDto
            {
                ResourceName          = "cChocoPackageInstaller",
                ChocolateyPackageName = "visualstudio",
                Ensure    = Ensure.Present,
                DependsOn = new List <DscResourceDto> {
                    dockerChocolateyResourceDto
                },
                ResourceStepName = "visualStudioStep"
            };

            resharperChocolateyResourceDto = new ChocolateyPackageDto
            {
                ResourceName          = "cChocoPackageInstaller",
                ChocolateyPackageName = "resharper",
                Ensure    = Ensure.Present,
                DependsOn = new List <DscResourceDto> {
                    dockerChocolateyResourceDto, visualStudioChocolateyResourceDto
                },
                ResourceStepName         = "resharperStep",
                ChocolateyPackageVersion = "1.2.3"
            };
        }
コード例 #2
0
 private void GivenDtoWithValues()
 {
     dockerChocolateyResourceDto = new ChocolateyPackageDto
     {
         ResourceName          = "cChocoPackageInstaller",
         ChocolateyPackageName = "docker-for-windows",
         ResourceStepName      = "dockerStep",
         Ensure = Ensure.Present
     };
 }
コード例 #3
0
        private void GivenDscResourceContainsInformations()
        {
            var dscDependency = new ChocolateyPackageDto
            {
                ChocolateyPackageName = "Dependency",
                DependsOn             = new List <DscResourceDto>(),
                Ensure           = Ensure.Present,
                ResourceName     = "TestResource",
                ResourceStepName = "TestStep"
            };

            resourceDto = new ChocolateyPackageDto
            {
                ChocolateyPackageName = "TestPackage",
                DependsOn             = new List <DscResourceDto> {
                    dscDependency
                },
                Ensure           = Ensure.Absent,
                ResourceName     = "TestMainResource",
                ResourceStepName = "TestMainStep"
            };
        }