The preposition for is probably used to show the purpose. 


  for (#8) -used to show purpose or function


Maybe, a similar sentence would be - I'll go to a garden for a jog.

If you go a to restaurant for something, the most common word that could be used  there is some dish, isn't it? to eat pie surely makes better sense but this one could be an informal  or formal way of speech. Let natives write their views. 

What does "pie" mean in the following sentence?
I am trying to find a way to write the unit test for the "CheckSomething" method, but i am having a very difficult time figuring out what to do with the RestClient object i am instantiating in the method. 

Should I abstract away the RestClient, and put the Interface dependency at the class level and injected from withint he constructor?? If i go with this route, does that mean I have to interface out all the dependencies ??

public class SomeRepository : IXRepository
{
    public SomeRepository()
    {
    }

    public bool CheckSomething()
    {
        var client = new RestClient("someurl");

        var request = new RestRequest("resourceX/{name}", Method.GET);
        request.AddUrlSegment("name", "ABC");
        var response = client.Execute(request);

        if (response.StatusCode == HttpStatusCode.NotFound) return false;
        if (response.StatusCode == HttpStatusCode.OK) return true;

        throw new Exception("Something is messed up");
    }
}

