예제 #1
0
        public void Update()
        {
            Twizo twizo  = new Twizo(this.apiKey, this.apiHost);
            var   backup = twizo.CreateBackupCode(this.identifier);

            backup.Update();
            LogResponse(backup);
        }
예제 #2
0
        public void Verify(string token)
        {
            Twizo twizo  = new Twizo(this.apiKey, this.apiHost);
            var   backup = twizo.CreateBackupCode(this.identifier);

            backup.Verify(token);
            LogResponse(backup);
        }
예제 #3
0
        public void CreateBackupCodeTest()
        {
            //Arrange
            string identifier = "myIdentifier";
            Twizo  twizo      = new Twizo(apiKey, apiHost);

            //Act
            var backup = twizo.CreateBackupCode(identifier);

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