コード例 #1
0
ファイル: TestFiltreClub.cs プロジェクト: TheOnlyMrFlow/CoBad
        public TestFiltreClub()
        {
            this.club1 = new Club(
                "LIFB.93.05.025",
                new Club.ChampsPoona(
                    new Adresse(),
                    "Association Badminton Seine St Denis",
                    "APSAD93",
                    "Bobigny",
                    "93000",
                    "Foo Bar",
                    true,
                    "",
                    "",
                    "",
                    ""
                    )
                );


            this.club2 = new Club(
                "LIFB.93.98.018",
                new Club.ChampsPoona(
                    new Adresse(),
                    "Athletic Club De Bobigny",
                    "ACB",
                    "Bobigny",
                    "93000",
                    "John Doe",
                    false,
                    "",
                    "",
                    "",
                    ""
                    )
                );

            this.club3 = new Club(
                "LIFB.93.06.040",
                new Club.ChampsPoona(
                    new Adresse(),
                    "Association Badminton Romainvillois",
                    "ABR",
                    "Romainville",
                    "93230",
                    "John Doe",
                    false,
                    "",
                    "",
                    "",
                    ""
                    )
                );

            var mockRepertoireClub = new Mock <IRepertoireClubs>();

            mockRepertoireClub
            .Setup(x => x.ObtenirTousLesClubs())
            .Returns(new List <Club> {
                club1, club2, club3
            });

            var mockFrontierePersistence = new Mock <IFrontierePersistance>();

            mockFrontierePersistence
            .Setup(x => x.RepertoireClubs)
            .Returns(mockRepertoireClub.Object);

            this.filtreClub = new FrontiereCobad(mockFrontierePersistence.Object, new Mock <IAccesseurPoona>().Object, new Mock <IImporteurDeCompetition>().Object).GestionaireClubs.ObtenirFiltreDeClub();
        }
コード例 #2
0
 public int Run(IFiltreClub filtreDeClub)
 {
     throw new NotImplementedException();
 }