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 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 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);
        }