コード例 #1
0
 public dynamic DeleteTest(string accessToken, string path)
 {
     return Test("delete test", () =>
                                    {
                                        var fb = new FuntownClient(accessToken);
                                        return fb.Delete(path);
                                    });
 }
コード例 #2
0
        public void Wall_Post_Publish_And_Delete()
        {
            FuntownClient app = new FuntownClient();
            dynamic parameters = new ExpandoObject();
            parameters.access_token = ConfigurationManager.AppSettings["AccessToken"];
            parameters.message = "This is a test message that has been published by the Funtown C# SDK on Codeplex. " + DateTime.UtcNow.Ticks.ToString();

            dynamic result = app.Post("/me/feed", parameters);

            Assert.NotEqual(null, result.id);

            // Delete methods should return 'true'
            var isDeleted = app.Delete(result.id);

            Assert.True(isDeleted);
        }