Ejemplo n.º 1
0
 public WordPressWrapper GetWordPressClient()
 {
     //remember to include the http://
     string Url = XmlRpcUrl; //change this to the location of your xmlrpc.php file
     //typically http://www.yourdomain.com/xmlrpc.php (if your wordpress blog is installed in root dir)
     var result = new WordPressWrapper(XmlRpcUrl, Username, Password);
     return result;
 }
Ejemplo n.º 2
0
        public void Setup()
        {
            var uri = new Uri("http://localhost:8081/");
            fakeServer = new NancyHost(uri);
            fakeServer.Start();

            wordpressWrapper = new WordPressWrapper(uri.AbsoluteUri + "xmlrpc.php", FakeWordPressServer.Username, FakeWordPressServer.Password);
        }