public void ExistMatchTrueTest()
 {
     sportsRepo.Add(sport);
     teamsRepo.Add(teamA);
     teamsRepo.Add(teamB);
     serviceToTest.AddEncounter(matchAvsBDto);
     Assert.IsTrue(serviceToTest.Exists(matchAvsB.Id));
 }
        public void ExistsNoDataAccessTest()
        {
            Mock <IEncounterRepository> fakeRepo = new Mock <IEncounterRepository>();

            fakeRepo.Setup(r => r.Exists(It.IsAny <int>())).Throws(new DataInaccessibleException());
            serviceToTest = new EncounterService(fakeRepo.Object, teamsRepo, sportsRepo, usersRepo, auth.Object);

            serviceToTest.Exists(3);
        }