public void ConstructClientTest() { var i = new ImghoardClient(); Assert.NotNull(i); Assert.Equal(Config.Default().Endpoint, i.GetEndpoint()); }
/// <summary> /// Creates a new instance of ImagesResponse /// </summary> /// <param name="client">An instance of the Imghoard Client</param> /// <param name="images">The list of images currently gotten</param> /// <param name="queryTags">Query tags used to get the images</param> /// <param name="page">Current page the response is on</param> public ImagesResponse(ImghoardClient client, IEnumerable <Image> images, string[] queryTags, int page) { this.clientInstance = client; this.Images = images.ToList(); this.QueryTags = queryTags; this.Page = page; }
public void ConstructClientTest() { var i = new ImghoardClient(ImghoardClient.Config.Default()); Assert.NotNull(i); }
static async Task RunAsync() { var cli = new ImghoardClient(); }