Exemplo n.º 1
0
 public CreateFlashcard(ICheckIfFlashcardIdIsUnique checkIfFlashcardIdIsUnique, ICheckIfFlashcardIsUnique checkIfFlashcardIsUnique, IInsertNewFlashcard insertNewFlashcard, IValidateFlashcard validateFlashcard)
 {
     _checkIfFlashcardIdIsUnique = checkIfFlashcardIdIsUnique;
     _checkIfFlashcardIsUnique   = checkIfFlashcardIsUnique;
     _insertNewFlashcard         = insertNewFlashcard;
     _validateFlashcard          = validateFlashcard;
     UserMessages = new List <string>();
 }
Exemplo n.º 2
0
 public UpdateFlashcard(
     ICheckIfFlashcardIsUnique checkIfFlashcardIsUnique,
     IValidateFlashcard validateFlashcard,
     IUpdateFlashcardWords updateFlashcardWords)
 {
     _checkIfFlashcardIsUnique = checkIfFlashcardIsUnique;
     _validateFlashcard        = validateFlashcard;
     _updateFlashcardWords     = updateFlashcardWords;
     UserMessages = new List <string>();
 }