Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Match door kunnen spelen na afsluiten applicatie feature. #105

Closed
SwenvdWijngaard opened this issue Nov 1, 2020 · 0 comments · Fixed by #107
Closed

Match door kunnen spelen na afsluiten applicatie feature. #105

SwenvdWijngaard opened this issue Nov 1, 2020 · 0 comments · Fixed by #107
Assignees
Labels
C# Mostly back end stuff Feature New feature or request
Milestone

Comments

@SwenvdWijngaard
Copy link
Collaborator

SwenvdWijngaard commented Nov 1, 2020

Omschrijving

Huidige werking:
Martin had een requirement in de lessen genoemd waar een match doorgespeeld kon worden als de applicatie onverwachts gesloten was. Daar hebben wij destijds de PlayState Enum voor geïmplementeerd.

Verwachte werking:
Wanneer een speler het spel stopt doormiddel van het kruisje, zal dat spel doorgespeeld kunnen worden wanneer de speler de applicatie opnieuw opstart. Wanneer de speler een match stopt doormiddel van de "Stop Match" knop zal de niet gefinishte match uit de database verwijderd worden.

Risico's
Laag risico, delete functie aanroepen en nieuwe logica voor match start.


Test 1 "Applicatie tijdens match afsluiten" :

Voorbereiding:

  • Verwijder de "DARTS_DATABASE.sqlite" file in DARTS\DARTS\bin\Debug\netcoreapp3.1
  • Start het programma op.
  • Klik op de "Start Match" knop.
  • Vul bij player1 & player2 "Bib" en "Bob" in.
  • Vul bij de Sets en Legs "1" in.
  • Zet de stating player op "Player1".
  • Klik op de "Start Match" knop.

Test:

  • Vul bij worp 1, worp 2 en worp 3 "Tripple 20" in.
  • Klik op de "Next turn" knop.
  • Sluit de applicatie doormiddel op het kruisje rechtsboven in het scherm te klikken.
  • Start het programma op.
  • Klik op de "Start Match" knop.

Geslaagd als:
Het programma het scoreInputView weergeeft, waar player2 aan de beurt is en de score bij player1 "321" is.


Test 2 "Match stoppen cancel:

Voorbereiding:

  • Voer Test 1 uit.

Test:

  • Klik op de "Stop Match" knop.
  • Klik "Cancel" in de popup die verschijnt.

Geslaagd als:
Het programma hetzelfde scherm blijft weergeven.


Test 3 "Match stoppen:

Voorbereiding:

  • Voer Test 2 uit.

Test:

  • Klik op de "Stop Match" knop.
  • Klik "Ok" in de popup die verschijnt.
  • Klik op de "Start Match" knop.

Geslaagd als:
Het programma het StartMatchView weergeeft.


@SwenvdWijngaard SwenvdWijngaard added Feature New feature or request C# Mostly back end stuff labels Nov 1, 2020
@SwenvdWijngaard SwenvdWijngaard added this to the Sprint 6 milestone Nov 1, 2020
@SwenvdWijngaard SwenvdWijngaard self-assigned this Nov 1, 2020
SwenvdWijngaard added a commit that referenced this issue Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C# Mostly back end stuff Feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant