|
|
@ -54,7 +54,7 @@ fun EnterTanDialogPreview_WithMultipleTanMedia() { // shows that dialog is reall
|
|
|
|
val tanImage = TanImage("image/png", tanImageBytes)
|
|
|
|
val tanImage = TanImage("image/png", tanImageBytes)
|
|
|
|
|
|
|
|
|
|
|
|
val tanMethods = listOf(
|
|
|
|
val tanMethods = listOf(
|
|
|
|
TanMethod("chipTAN optisch", TanMethodType.ChipTanFlickercode, "911", 6, AllowedTanFormat.Numeric),
|
|
|
|
TanMethod("chipTAN optisch", TanMethodType.ChipTanFlickerCode, "911", 6, AllowedTanFormat.Numeric),
|
|
|
|
TanMethod("chipTAN-QR", TanMethodType.ChipTanQrCode, "913", 6, AllowedTanFormat.Numeric)
|
|
|
|
TanMethod("chipTAN-QR", TanMethodType.ChipTanQrCode, "913", 6, AllowedTanFormat.Numeric)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
@ -73,20 +73,20 @@ fun EnterTanDialogPreview_WithMultipleTanMedia() { // shows that dialog is reall
|
|
|
|
|
|
|
|
|
|
|
|
@Preview
|
|
|
|
@Preview
|
|
|
|
@Composable
|
|
|
|
@Composable
|
|
|
|
fun EnterTanDialogPreview_Flickercode() {
|
|
|
|
fun EnterTanDialogPreview_FlickerCode() {
|
|
|
|
val tanMethods = listOf(TanMethod("chipTAN Flickercode", TanMethodType.ChipTanFlickercode, "902"))
|
|
|
|
val tanMethods = listOf(TanMethod("chipTAN Flickercode", TanMethodType.ChipTanFlickerCode, "902"))
|
|
|
|
val bank = BankViewInfo("12345678", "SupiDupiNutzer", "Abzockbank", BankingGroup.Postbank)
|
|
|
|
val bank = BankViewInfo("12345678", "SupiDupiNutzer", "Abzockbank", BankingGroup.Postbank)
|
|
|
|
val tanChallenge = TanChallenge(TanChallengeType.Flickercode, ActionRequiringTan.GetTanMedia, "Geben Sie die TAN ein", tanMethods.first().identifier, tanMethods, bank = bank, flickerCode = FlickerCode("100880077104", "0604800771040F"))
|
|
|
|
val tanChallenge = TanChallenge(TanChallengeType.FlickerCode, ActionRequiringTan.GetTanMedia, "Geben Sie die TAN ein", tanMethods.first().identifier, tanMethods, bank = bank, flickerCode = FlickerCode("100880077104", "0604800771040F"))
|
|
|
|
|
|
|
|
|
|
|
|
EnterTanDialog(TanChallengeReceived(tanChallenge) { }) { }
|
|
|
|
EnterTanDialog(TanChallengeReceived(tanChallenge) { }) { }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Preview
|
|
|
|
@Preview
|
|
|
|
@Composable
|
|
|
|
@Composable
|
|
|
|
fun EnterTanDialogPreview_Flickercode_DecodingError() {
|
|
|
|
fun EnterTanDialogPreview_FlickerCode_DecodingError() {
|
|
|
|
val tanMethods = listOf(TanMethod("chipTAN Flickercode", TanMethodType.ChipTanFlickercode, "902"))
|
|
|
|
val tanMethods = listOf(TanMethod("chipTAN Flickercode", TanMethodType.ChipTanFlickerCode, "902"))
|
|
|
|
val bank = BankViewInfo("12345678", "SupiDupiNutzer", "Abzockbank", BankingGroup.Postbank)
|
|
|
|
val bank = BankViewInfo("12345678", "SupiDupiNutzer", "Abzockbank", BankingGroup.Postbank)
|
|
|
|
val tanChallenge = TanChallenge(TanChallengeType.Flickercode, ActionRequiringTan.ChangeTanMedium, "Geben Sie die TAN ein", tanMethods.first().identifier, tanMethods, bank = bank, flickerCode = FlickerCode("100880077104", null, decodingError = "Ja Hoppla, da ist dann wohl etwas schief gelaufen."))
|
|
|
|
val tanChallenge = TanChallenge(TanChallengeType.FlickerCode, ActionRequiringTan.ChangeTanMedium, "Geben Sie die TAN ein", tanMethods.first().identifier, tanMethods, bank = bank, flickerCode = FlickerCode("100880077104", null, decodingError = "Ja Hoppla, da ist dann wohl etwas schief gelaufen."))
|
|
|
|
|
|
|
|
|
|
|
|
EnterTanDialog(TanChallengeReceived(tanChallenge) { }) { }
|
|
|
|
EnterTanDialog(TanChallengeReceived(tanChallenge) { }) { }
|
|
|
|
}
|
|
|
|
}
|