Пример #1
0
        public void Infra_Aposta_SQLRepository_Deveria_BuscarConcursoIdComBolao()
        {
            _repositoryBolao = new BolaoSQLRepository();
            Bolao bolao = Loterica.Common.Tests.Boloes.ObjectMother.GetBolaoCom10Apostas();

            _repositoryBolao.Adicionar(bolao);
            var apostasBanco = _repository.GetByConcursoIdComBolao(1);

            apostasBanco.Count().Should().Be(10);
        }
Пример #2
0
 public void Initialize()
 {
     BaseSqlTest.SeedDatabase();
     _repository = new BolaoSQLRepository();
     _service    = new BolaoService(_repository);
 }
Пример #3
0
 public BolaoService(IBolaoRepository repository)
 {
     _repository = repository;
 }