public void NewWeblogPostTest() { var post = new WeblogPost() { PostId = "1683236", Title = "UPDATED! A new Test Post", Body = "This is a long post with pointless points.", Abstract = "This is an abstracted abstract that's just as pointless - and longer.", Author = "Rick Strahl", DateCreated = DateTime.Now, RawPostText = "Markdown Text goes **here**.", Location = "Paia, HI", ImageUrl = "http://*****:*****@west-wind.com", "testing"); Assert.IsNotNull(token); var postId = client.UploadPost(post); Assert.IsNotNull(postId); Assert.IsNotEmpty(postId); }
public void AuthenticateTest() { var client = new WeblogPostServiceClient() { ApiBaseUrl = ServiceUrl }; var token = client.Authenticate("*****@*****.**", "testing"); Assert.IsNotEmpty(token); Console.WriteLine(token); }