You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Cryptid/cryptide_project/src/model/IndiceTester/NbSportIndiceTester.ts

20 lines
575 B

import AgeIndice from "../Indices/AgeIndice";
import ColorIndice from "../Indices/ColorIndice";
import NbSportIndice from "../Indices/NbSportIndice";
import Person from "../Person";
import IndiceTester from "./IndiceTester";
class NbSportIndiceTester implements IndiceTester{
private nbSportIndice: NbSportIndice
constructor(nbSportIndice: NbSportIndice){
this.nbSportIndice = nbSportIndice;
}
Works(person: Person): boolean {
return this.nbSportIndice.getNbSport() == person.getSports().length
}
}
export default NbSportIndiceTester