Beispiel #1
0
        public void TestAzureStorageNameUsed()
        {
            string name = "test";

            cloudServiceClientMock.Setup(f => f.CheckStorageServiceAvailability(name)).Returns(false);

            cmdlet.IsStorageServiceAvailable(null, name);

            bool actual = (bool)commandRuntimeMock.OutputPipeline[0];

            Assert.True(actual);
        }
Beispiel #2
0
        public void TestAzureStorageNameUsed()
        {
            string name = "test";

            channel.IsStorageServiceAvailableThunk = idnsa => { return(new AvailabilityResponse {
                    Result = false
                }); };

            cmdlet.IsStorageServiceAvailable(subscriptionId, name);

            bool actual = (bool)mockCommandRuntime.OutputPipeline[0];

            Assert.IsTrue(actual);
        }