Exemplo n.º 1
0
        public static void CreateRepositoriesTest(NpgsqlConnection conn)
        {
            var serviceCollection = new ServiceCollection();

            DatabaseServices.AddServicePostgre(serviceCollection, conn);

            _vendaCervejaRepository = serviceCollection.BuildServiceProvider()
                                      .GetService <IVendaCervejaRepository>();
        }
Exemplo n.º 2
0
 public ListarVendas(IVendaCervejaRepository vendaCervejaRepo)
 {
     _vendaCervejaRepo = vendaCervejaRepo;
 }
 public ProgramaVendaCerveja(IVendaCervejaRepository vendaRepository)
 {
     _vendaRepository = vendaRepository;
 }