public void CreateTest()
        {
            //Arrange
            TwizoClient client = new TwizoClient(TwizoTests.apiKey, TwizoTests.apiHost);
            BackupCode  backup = new BackupCode(client);

            backup.identifier = "myIdentifier";

            //Act
            backup.Delete();
            Response response = backup.Create();

            //Assert
            Assert.AreEqual(response.statusCode, 201);
            Assert.IsTrue(response.body.Count > 0);
        }
        public void PopulateTest()
        {
            //Arrange
            TwizoClient client = new TwizoClient(TwizoTests.apiKey, TwizoTests.apiHost);
            BackupCode  backup = new BackupCode(client);

            backup.identifier = "myIdentifierPopulateTest";

            //Act
            backup.Delete();
            backup.Create();
            var newBackup = new BackupCode(client);

            newBackup.Populate(backup.identifier);

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