public async System.Threading.Tasks.Task MakeSMSRequestWithFilter() { var request = new SMSClient(new AndroidSMSAdapter()); //fill in a real date here var date = 1454703049063; //var date = DateTime.Now.ToUnixTimeSeconds(); //IF USING EMULATOR //open a console //connect via telnet to the running emulator: telnet localhost 5554(you can find the portnumber in the title of the emulator) //type this: sms send senderPhoneNumber textmessage //IF USING PHYSICAL DEVICE //send yourself a text message now var resultsTask = request.GetDataPoints(date.ToString()); var results = await resultsTask; Assert.True(results.Count() == 1); var result = results.Single(); Assert.NotNull(result.Item2["address"]); Assert.NotNull(result.Item2["body"]); Assert.NotNull(result.Item2["date"]); }
public async System.Threading.Tasks.Task MakeAllSMSRequest() { var request = new SMSClient(new AndroidSMSAdapter()); var resultsTask = request.GetDataPoints(null); var results = await resultsTask; Assert.True(results.Count() > 0); foreach (var result in results) { Assert.NotNull(result.Item2["address"]); Assert.NotNull(result.Item2["body"]); Assert.NotNull(result.Item2["date"]); } }