public void ResultDeserializesCorrectly() { var task = new PinConfirmation(); var request = Utility.ExampleFileContent <SessionResumedRequest>("PinConfirmationSessionResumed.json"); var result = PinConfirmationConverter.ResultFromSessionResumed(request); Assert.Equal(PinConfirmationStatus.NotAchieved, result.Status); Assert.Equal(PinConfirmationReason.VerificationMethodNotSetup, result.Reason); }
public void PinConfirmationSerializesCorrectly() { var task = new PinConfirmation(); Assert.True(Utility.CompareJson(task.ToConnectionDirective("example-token"), "PinConfirmation.json")); }