public void GetWidgetSessionTest() { //Arrange string recipient = "601151174973"; string[] allowedTypes = new[] { WidgetSession.TYPE_SMS }; Twizo twizo = new Twizo(apiKey, apiHost); //Act var session = twizo.CreateWidgetSession(allowedTypes, recipient); session.Create(); string token = session.sessionToken; var newSession = twizo.GetWidgetSession(token, recipient); //Assert Assert.AreEqual(session.sessionToken, newSession.sessionToken); Assert.AreEqual(session.recipient, newSession.recipient); }