public void CanCreateInstance()
        {
           var testee = new BlobstoreCredentials("Admin", "ChangeIt");

            testee.UserName.Should().Be("Admin");
            testee.Password.Should().Be("ChangeIt");
        }
Exemplo n.º 2
0
        /// <summary>
        /// Creates a new instance of <see cref="BlobstoreHttpAdapter"/>
        /// </summary>
        /// <param name="credentials">The BlobStore credentials</param>
        /// <param name="uriBuilder">The BlobStore URI builder</param>
        /// <param name="identifier">The identifier</param>
        /// <param name="fileName">The file name</param>
        public BlobstoreHttpAdapter(
            BlobstoreCredentials credentials,
            BlobstoreUriBuilder uriBuilder,
            string identifier,
            string fileName)
        {
            this.credentials = credentials;
            this.uriBuilder = uriBuilder;
            this.identifier = identifier;
            this.fileName = fileName;

            this.lazyHttpClient = new Lazy<HttpClient>(this.CreateHttpClient);
        }
Exemplo n.º 3
0
 /// <summary>
 /// Creates a new instance of <see cref="BlobstoreHttpAdapter"/>
 /// </summary>
 /// <param name="credentials">The BlobStore credentials</param>
 /// <param name="uriBuilder">The BlobStore URI builder</param>
 /// <param name="identifier">The identifier</param>
 public BlobstoreHttpAdapter(
     BlobstoreCredentials credentials,
     BlobstoreUriBuilder uriBuilder,
     string identifier) : this(credentials, uriBuilder, identifier, string.Empty)
 {
 }
Exemplo n.º 4
0
 /// <summary>
 /// Creates a new instance of <see cref="BlobstoreClientFactory"/>
 /// </summary>
 /// <param name="credentials">The BlobStore credentials</param>
 public BlobstoreClientFactory(BlobstoreCredentials credentials)
 {
     this.credentials = credentials;
 }
 public BlobstoreHttpAdapterFactoryTest()
 {
     this.credentials = new BlobstoreCredentials("Admin", "ChangIt");
     this.uriBuilder = new BlobstoreUriBuilder("http://localhost:8080");
     this.testee = new BlobstoreHttpAdapterFactory(this.credentials, this.uriBuilder);
 }