public void SmsTest() { // Initialise Instance var target = new TfsBuildExtensions.Activities.Communication.Sms { Action = SmsAction.Send, From = "YOUREMAIL", Body = "YOURBODY", AccountSid = "YOURSID", AuthToken = "YOURTOKEN" }; // Declare additional parameters var parameters = new Dictionary<string, object> { { "To", new[] { "YOURRECIPIENT" } }, }; // Create a WorkflowInvoker and add the IBuildDetail Extension WorkflowInvoker invoker = new WorkflowInvoker(target); var actual = invoker.Invoke(parameters); // note this unit test is for debugging rather than testing so just return a true assertion Assert.IsTrue(1 == 1); }
public void SmsTest() { // Initialise Instance var target = new TfsBuildExtensions.Activities.Communication.Sms { Action = SmsAction.Send, From = "YOUREMAIL", Body = "YOURBODY", AccountSid = "YOURSID", AuthToken = "YOURTOKEN" }; // Declare additional parameters var parameters = new Dictionary <string, object> { { "To", new[] { "YOURRECIPIENT" } }, }; // Create a WorkflowInvoker and add the IBuildDetail Extension WorkflowInvoker invoker = new WorkflowInvoker(target); var actual = invoker.Invoke(parameters); // note this unit test is for debugging rather than testing so just return a true assertion Assert.IsTrue(1 == 1); }