public void ParseFileModuleOK(string source) { // Act FileModule module = source; // Assert Assert.NotNull(module); Assert.Equal(module.ToString().ToLower(), source.ToLower()); }
protected override HttpRequestMessage CreateRequest(HttpMethod method, string url, object body = null) { var request = base.CreateRequest(method, url, body); if (_fileStream != null) { var content = new MultipartFormDataContent(); _fileStream.Seek(0, SeekOrigin.Begin); content.Add(new StreamContent(_fileStream), "file", _fileName); content.Add(new StringContent(_fileFolder.ToString()), "ConsumerDetails.BucketType"); content.Add(new StringContent(_siteName), "ConsumerDetails.CustomerName"); content.Add(new StringContent(_moduleName.ToString()), "ConsumerDetails.Module"); request.Content = content; } return(request); }