Esempio n. 1
0
        public void Aluguel_deve_ter_um_automovel()
        {
            var _automovel = ConstrutorObjeto.CriarAutomovel();

            _aluguel.Automovel = _automovel;

            Assert.AreEqual(_automovel, _aluguel.Automovel);
        }
Esempio n. 2
0
        public void Inicializador()
        {
            Database.SetInitializer(new InicializadorBanco <CarrosContexto>());

            _contextoTeste = new CarrosContexto();

            _repositorio = new AutomovelRepositorio();

            _automovelTest = ConstrutorObjeto.CriarAutomovel();

            _contextoTeste.Database.Initialize(true);
        }
Esempio n. 3
0
 public void Inicializador()
 {
     _automovel = ConstrutorObjeto.CriarAutomovel();
 }