示例#1
0
        public void Should_rebuild_FacebookClient()
        {
            var client = new FacebookClient()
            {
                ServiceCredential = "DEGSVC.Facebook.local",
                RequestedScope    = "manage_pages,ads_management",
                AppId             = "",
                AppSecret         = "",
                ClientToken       = "",
            };
            var orgArgs = client.GetClientArgs();
            var args    = JsonSerializer.Deserialize <Args>(JsonSerializer.Serialize(orgArgs, Default.JsonOptions));

            Check.That(args.Count > 0).IsTrue();
            var newClient = AutomaClient.Parse(args);

            Check.That(newClient).IsNotNull();
        }