public void DownvoteTest() { Jodel jodel = GetJodelObject(); jodel.Downvote(jodel.GetAllJodels()[1].PostId); Random rnd = new Random(); jodel.PostJodel("Unit Test successfull, took me '" + rnd.Next(100, 400) + "ms'. Downvoted Successfull"); }
static void Main(string[] args) { var location = Location.GetCoordinates("Baden, Aargau, Schweiz"); string accessToken = Account.GenerateAccessToken(location.Latitude, location.Longitude, "CH", "Baden").AccessToken; User user = new User(accessToken, location.Latitude, location.Longitude, "CH", "Baden"); Jodel jodel = new Jodel(user); var jodels = jodel.GetAllJodels(); Console.WriteLine(jodels[4].Message); //var t = jodel.GetAllJodelsAsync(); //Console.WriteLine(jodels1[1].Message); Console.Read(); }