Ejemplo n.º 1
0
        public void ToParameterDescriptor_ReturnsExpectedDescriptor()
        {
            Mock <IArgumentBinding <IStorageBlobContainer> > mockArgumentBinding = new Mock <IArgumentBinding <IStorageBlobContainer> >(MockBehavior.Strict);
            Mock <IStorageBlobClient> mockStorageClient = new Mock <IStorageBlobClient>(MockBehavior.Strict);
            Mock <IBindableBlobPath>  mockBlobPath      = new Mock <IBindableBlobPath>(MockBehavior.Strict);
            BlobContainerBinding      binding           = new BlobContainerBinding("testparam", mockArgumentBinding.Object, mockStorageClient.Object, mockBlobPath.Object);
            ParameterDescriptor       descriptor        = binding.ToParameterDescriptor();

            Assert.Equal(typeof(ParameterDescriptor), descriptor.GetType());
            Assert.Equal("testparam", descriptor.Name);
            Assert.Equal("Enter the blob container name or blob path prefix", descriptor.DisplayHints.Prompt);
        }