示例#1
0
        public void GetStatus()
        {
            Twizo twizo  = new Twizo(this.apiKey, this.apiHost);
            var   backup = twizo.GetBackupCode(this.identifier);

            LogResponse(backup);
        }
示例#2
0
        public void GetBackupCodeTest()
        {
            //Arrange
            string identifier = "myIdentifier";
            Twizo  twizo      = new Twizo(apiKey, apiHost);

            //Act
            try
            {
                twizo.CreateBackupCode(identifier);
            }
            catch { }
            var backup = twizo.GetBackupCode(identifier);

            //Assert
            Assert.AreEqual(backup.identifier, identifier);
        }