예제 #1
0
        public void ConstructClientTest()
        {
            var i = new ImghoardClient();

            Assert.NotNull(i);
            Assert.Equal(Config.Default().Endpoint, i.GetEndpoint());
        }
예제 #2
0
 /// <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;
 }
예제 #3
0
        public void ConstructClientTest()
        {
            var i = new ImghoardClient(ImghoardClient.Config.Default());

            Assert.NotNull(i);
        }
예제 #4
0
 static async Task RunAsync()
 {
     var cli = new ImghoardClient();
 }