Exemplo n.º 1
0
        public void CorrectRequestForGetAllActions()
        {
            var factory = Substitute.For <IConnection>();
            var client  = new ImagesClient(factory);

            client.GetAllActions(9001);

            var parameters = Arg.Is <List <Parameter> >(list => (int)list[0].Value == 9001);

            factory.Received().GetPaginated <Action>("images/{id}/actions", parameters, "actions");
        }