public void Update() { Twizo twizo = new Twizo(this.apiKey, this.apiHost); var backup = twizo.CreateBackupCode(this.identifier); backup.Update(); LogResponse(backup); }
public void Verify(string token) { Twizo twizo = new Twizo(this.apiKey, this.apiHost); var backup = twizo.CreateBackupCode(this.identifier); backup.Verify(token); LogResponse(backup); }
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); }