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" }; }
private void GivenDtoWithValues() { dockerChocolateyResourceDto = new ChocolateyPackageDto { ResourceName = "cChocoPackageInstaller", ChocolateyPackageName = "docker-for-windows", ResourceStepName = "dockerStep", Ensure = Ensure.Present }; }
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" }; }