public void PopulateTestInvalidIdentifier() { //Arrange TwizoClient client = new TwizoClient(TwizoTests.apiKey, TwizoTests.apiHost); WidgetSession session = new WidgetSession(client); //Act session.Populate("myMessageId"); }
public void PopulateTestNull() { //Arrange TwizoClient client = new TwizoClient(TwizoTests.apiKey, TwizoTests.apiHost); BackupCode backup = new BackupCode(client); //Act backup.Populate(null); }
public void PopulateTestInvalidMessageId() { //Arrange TwizoClient client = new TwizoClient(TwizoTests.apiKey, TwizoTests.apiHost); Verification verification = new Verification(client); //Act verification.Populate("myMessageId"); }
public void PopulateTestInvalidMessageId() { //Arrange TwizoClient client = new TwizoClient(TwizoTests.apiKey, TwizoTests.apiHost); NumberLookup lookup = new NumberLookup(client); //Act lookup.Populate("myMessageId"); }
public void PopulateTestNull() { //Arrange TwizoClient client = new TwizoClient(TwizoTests.apiKey, TwizoTests.apiHost); Sms sms = new Sms(client); //Act sms.Populate(null); }
public void PopulateTestInvalidMessageId() { //Arrange TwizoClient client = new TwizoClient(TwizoTests.apiKey, TwizoTests.apiHost); Sms sms = new Sms(client); //Act sms.Populate("myMessageId"); }
public void PopulateTestNull() { //Arrange TwizoClient client = new TwizoClient(TwizoTests.apiKey, TwizoTests.apiHost); NumberLookup lookup = new NumberLookup(client); //Act lookup.Populate(null); }
public void VerifyTest() { //Arrange TwizoClient client = new TwizoClient(TwizoTests.apiKey, TwizoTests.apiHost); Verification verification = new Verification(client); //Act verification.Verify(null, "myMessageId"); }
public void PopulateTestInvalidIdentifier() { //Arrange TwizoClient client = new TwizoClient(TwizoTests.apiKey, TwizoTests.apiHost); BackupCode backup = new BackupCode(client); //Act backup.Populate("myIdentifier"); }
public void VerifyTest2() { //Arrange TwizoClient client = new TwizoClient(TwizoTests.apiKey, TwizoTests.apiHost); Verification verification = new Verification(client); //Act verification.Verify("myToken"); }
public void PopulateTestNull() { //Arrange TwizoClient client = new TwizoClient(TwizoTests.apiKey, TwizoTests.apiHost); Verification verification = new Verification(client); //Act verification.Populate(null); }
public void VerifyTest2() { //Arrange TwizoClient client = new TwizoClient(TwizoTests.apiKey, TwizoTests.apiHost); BackupCode backup = new BackupCode(client); //Act backup.Verify("myToken"); }
public void VerifyTest() { //Arrange TwizoClient client = new TwizoClient(TwizoTests.apiKey, TwizoTests.apiHost); BackupCode backup = new BackupCode(client); //Act backup.Verify(null, "myIdentifier"); }
public void PopulateTestNull() { //Arrange TwizoClient client = new TwizoClient(TwizoTests.apiKey, TwizoTests.apiHost); WidgetSession session = new WidgetSession(client); //Act session.Populate(null); }
public void SendTestNull() { //Arrange TwizoClient client = new TwizoClient(TwizoTests.apiKey, TwizoTests.apiHost); NumberLookup lookup = new NumberLookup(client); lookup.numbers = null; //Act Response response = lookup.Send(); }
public void SendTestNull() { //Arrange TwizoClient client = new TwizoClient(TwizoTests.apiKey, TwizoTests.apiHost); Verification verification = new Verification(client); verification.recipient = null; //Act Response response = verification.Send(); }
public void SendTest() { //Arrange TwizoClient client = new TwizoClient(TwizoTests.apiKey, TwizoTests.apiHost); Poll poll = new Poll(client, Poll.TYPE_SMS); //Act Response response = poll.Send(); //Assert Assert.AreEqual(response.statusCode, 200); Assert.IsTrue(response.body.Count > 0); }
public void SendTestNull() { //Arrange TwizoClient client = new TwizoClient(TwizoTests.apiKey, TwizoTests.apiHost); Sms sms = new Sms(client); sms.recipients = null; sms.body = "This is a unit test"; sms.sender = "Unit tester"; //Act Response response = sms.Send(); }
public void SendRequestTest() { //Arrange string location = "wallet/getbalance"; string verb = "GET"; TwizoClient client = new TwizoClient(TwizoTests.apiKey, TwizoTests.apiHost); //Act Response response = client.SendRequest(location, verb); //Assert Assert.AreEqual(response.statusCode, 200); }
public void SendTest() { //Arrange TwizoClient client = new TwizoClient(TwizoTests.apiKey, TwizoTests.apiHost); NumberLookup lookup = new NumberLookup(client); lookup.numbers = new[] { "601151174973" }; //Act Response response = lookup.Send(); //Assert Assert.AreEqual(response.statusCode, 201); Assert.IsTrue(response.body.Count > 0); }
public void SendTest() { //Arrange TwizoClient client = new TwizoClient(TwizoTests.apiKey, TwizoTests.apiHost); Verification verification = new Verification(client); verification.recipient = "601151174973"; //Act Response response = verification.Send(); //Assert Assert.AreEqual(response.statusCode, 201); Assert.IsTrue(response.body.Count > 0); }
public void UpdateTest() { //Arrange TwizoClient client = new TwizoClient(TwizoTests.apiKey, TwizoTests.apiHost); BackupCode backup = new BackupCode(client); backup.identifier = "myIdentifier"; //Act //backup.Create(); Response response = backup.Update(); //Assert Assert.AreEqual(response.statusCode, 200); Assert.IsTrue(response.body.Count > 0); }
public void SendTest() { //Arrange TwizoClient client = new TwizoClient(TwizoTests.apiKey, TwizoTests.apiHost); Sms sms = new Sms(client); sms.recipients = new[] { "601151174973" }; sms.body = "This is a unit test"; sms.sender = "Unit tester"; //Act Response response = sms.Send(); //Assert Assert.AreEqual(response.statusCode, 201); Assert.IsTrue(response.body.Count > 0); }
public void CreateTest() { //Arrange TwizoClient client = new TwizoClient(TwizoTests.apiKey, TwizoTests.apiHost); WidgetSession session = new WidgetSession(client); session.recipient = "601151174973"; session.bodyTemplate = "This is a unit test %token%"; session.tag = "Unit tester"; session.allowedTypes = new[] { WidgetSession.TYPE_SMS }; //Act Response response = session.Create(); //Assert Assert.AreEqual(response.statusCode, 201); Assert.IsTrue(response.body.Count > 0); }
public void PopulateTest() { //Arrange TwizoClient client = new TwizoClient(TwizoTests.apiKey, TwizoTests.apiHost); BackupCode backup = new BackupCode(client); backup.identifier = "myIdentifierPopulateTest"; //Act backup.Delete(); backup.Create(); var newBackup = new BackupCode(client); newBackup.Populate(backup.identifier); //Assert Assert.AreEqual(newBackup.identifier, backup.identifier); Assert.AreEqual(newBackup.amountOfCodesLeft, backup.amountOfCodesLeft); }
public void PopulateTest() { //Arrange TwizoClient client = new TwizoClient(TwizoTests.apiKey, TwizoTests.apiHost); NumberLookup lookup = new NumberLookup(client); lookup.numbers = new[] { "601151174973" }; lookup.validity = 100; lookup.tag = "Unit testing"; //Act Response response = lookup.Send(); string messageId = lookup.messageId; var newLookup = new NumberLookup(client); newLookup.Populate(messageId); //Assert Assert.AreEqual(newLookup.messageId, lookup.messageId); Assert.AreEqual(newLookup.validity, lookup.validity); Assert.AreEqual(newLookup.tag, lookup.tag); }
public void PopulateTest() { //Arrange TwizoClient client = new TwizoClient(TwizoTests.apiKey, TwizoTests.apiHost); WidgetSession session = new WidgetSession(client); session.recipient = "601151174973"; session.bodyTemplate = "This is a unit test %token%"; session.tag = "Unit tester"; session.allowedTypes = new[] { WidgetSession.TYPE_SMS }; //Act session.Create(); var newSession = new WidgetSession(client); newSession.Populate(session.sessionToken, session.recipient); //Assert Assert.AreEqual(newSession.sessionToken, session.sessionToken); Assert.AreEqual(newSession.bodyTemplate, session.bodyTemplate); Assert.AreEqual(newSession.tag, session.tag); }
public void PopulateTest() { //Arrange TwizoClient client = new TwizoClient(TwizoTests.apiKey, TwizoTests.apiHost); Verification verification = new Verification(client); verification.recipient = "601151174973"; verification.validity = 100; verification.tag = "Unit testing"; //Act Response response = verification.Send(); string messageId = verification.messageId; var newVerification = new Verification(client); newVerification.Populate(messageId); //Assert Assert.AreEqual(newVerification.messageId, verification.messageId); Assert.AreEqual(newVerification.validity, verification.validity); Assert.AreEqual(newVerification.tag, verification.tag); }
public void PopulateTest() { //Arrange TwizoClient client = new TwizoClient(TwizoTests.apiKey, TwizoTests.apiHost); Sms sms = new Sms(client); sms.recipients = new[] { "601151174973" }; sms.sender = "Unit tester"; sms.body = "This is a unit test"; //Act Response response = sms.Send(); string messageId = sms.messageId; var newSms = new Sms(client); newSms.Populate(messageId); //Assert Assert.AreEqual(newSms.messageId, sms.messageId); Assert.AreEqual(newSms.recipient, sms.recipient); Assert.AreEqual(newSms.body, sms.body); Assert.AreEqual(newSms.sender, sms.sender); }