예제 #1
0
 public NewAzureResourceGroupDeploymentCommandTests(ITestOutputHelper output)
 {
     resourcesClientMock = new Mock <ResourceManagerSdkClient>();
     XunitTracingInterceptor.AddToContext(new XunitTracingInterceptor(output));
     commandRuntimeMock = new Mock <ICommandRuntime>();
     cmdlet             = new NewAzureResourceGroupDeploymentCmdlet()
     {
         CommandRuntime           = commandRuntimeMock.Object,
         ResourceManagerSdkClient = resourcesClientMock.Object
     };
 }
예제 #2
0
        public NewAzureResourceGroupDeploymentCommandTests(ITestOutputHelper output)
        {
            resourcesClientMock = new Mock <ResourceManagerSdkClient>();

            templateSpecsClientMock = new Mock <ITemplateSpecsClient>();
            templateSpecsClientMock.SetupAllProperties();
            templateSpecsVersionOperationsMock = new Mock <ITemplateSpecVersionsOperations>();
            templateSpecsClientMock.Setup(m => m.TemplateSpecVersions).Returns(templateSpecsVersionOperationsMock.Object);

            XunitTracingInterceptor.AddToContext(new XunitTracingInterceptor(output));
            commandRuntimeMock = new Mock <ICommandRuntime>();
            SetupConfirmation(commandRuntimeMock);
            cmdlet = new NewAzureResourceGroupDeploymentCmdlet()
            {
                CommandRuntime           = commandRuntimeMock.Object,
                ResourceManagerSdkClient = resourcesClientMock.Object,
                TemplateSpecsClient      = templateSpecsClientMock.Object
            };
        }