IWebAdapter Interface

Summary

Abstraction of a WebAdapter for tests.
graph BT Type["IWebAdapter"] class Type type-node

Syntax

public interface IWebAdapter

Methods

Name Value Summary
DownloadFile(Uri, FilePath, Action<int>) Task
Downloads a resource to a file.
DownloadString(Uri) Task<string>
Downloads a resource and returns it as a string.

Extension Methods

Name Value Summary
Dump<IWebAdapter>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<IWebAdapter>(IWebAdapter[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<IWebAdapter>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<IWebAdapter>(string) void
Requires the Cake.Issues addin
ThrowIfNull<IWebAdapter>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<IWebAdapter>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin
ToStringWithNullMarkup() string
Requires the Cake.Issues addin