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); }
public void Initialize() { BaseSqlTest.SeedDatabase(); _repository = new BolaoSQLRepository(); _service = new BolaoService(_repository); }
public BolaoService(IBolaoRepository repository) { _repository = repository; }