Пример #1
0
        public AtendenteServiceTest()
        {
            var context = new MeuDbContext(new DbContextOptions <MeuDbContext>());

            INotificador         notificador         = new Notificador();
            IAtendenteRepository atendenteRepository = new AtendenteRepository(context);

            _atendenteService = new AtendenteService(atendenteRepository, notificador);
        }
        public AtendenteRepositoryTest()
        {
            _atendente = new Atendente {
                Nome = "Rodrigo Oliveira", TipoAtendente = ETipoAtendente.Garcom
            };

            var context = new MeuDbContext(new DbContextOptions <MeuDbContext>());

            _atendenteRepository = new AtendenteRepository(context);
        }