예제 #1
0
        public void CorrectRequestForGetAllByTag()
        {
            var factory = Substitute.For <IConnection>();
            var client  = new ImagesClient(factory);

            client.GetAllByTag("mytag");

            var parameters = Arg.Is <List <Parameter> >(list => (string)list[0].Name == "tag_name" && (string)list[0].Value == "mytag");

            factory.Received().GetPaginated <Image>("images", parameters, "images");
        }