protected override void SetupDependencies()
        {
            session             = Mock <ISession>();
            postWithFileRequest = Mock <IYouTrackPostWithFileRequest>();

            restRequest = Mock <IRestRequest>();
            restRequest.Parameters.Returns(new List <Parameter>());
            restRequest.Parameters.Add(new Parameter()
            {
                Name = "Accept", Value = "foo"
            });

            restRequestFactory.CreateRestRequest(postWithFileRequest, session, Method.POST)
            .Returns(restRequest);
        }
 public IRestRequest CreateRestRequest(IYouTrackRequest request, ISession session, Method method)
 {
     return(restRequestFactory.CreateRestRequest(request, session, method));
 }