public void IniciarCenario() { var connection = DbConnectionFactory.CreatePersistent(Guid.NewGuid().ToString()); _fakeDbContext = new FakeDbContext(connection); _repositorio = new NotaFiscalRepositorioSql(_fakeDbContext); SementeBaseSQL semeador = new SementeBaseSQL(_fakeDbContext); semeador.Semear(); }
public void IniciarCenario() { var connection = DbConnectionFactory.CreatePersistent(Guid.NewGuid().ToString()); _fakeDbContext = new FakeDbContext(connection); _fakeDbContext.Database.Initialize(true); _repositorio = new ProdutoRepositorioSql(_fakeDbContext); SementeBaseSQL semeador = new SementeBaseSQL(_fakeDbContext); semeador.Semear(); }
public void IniciarCenario() { var connection = DbConnectionFactory.CreatePersistent(Guid.NewGuid().ToString()); _fakeDbContext = new FakeDbContext(connection); _transportadorRepositorio = new TransportadorRepositorioSql(_fakeDbContext); _endereco = new Endereco(); _cpf = new Documento("619.648.783-30", TipoDocumento.CPF); _cnpj = new Documento("37.311.068/0001-00", TipoDocumento.CNPJ); SementeBaseSQL semeador = new SementeBaseSQL(_fakeDbContext); semeador.Semear(); }