public void Aluguel_deve_ter_um_automovel() { var _automovel = ConstrutorObjeto.CriarAutomovel(); _aluguel.Automovel = _automovel; Assert.AreEqual(_automovel, _aluguel.Automovel); }
public void Inicializador() { Database.SetInitializer(new InicializadorBanco <CarrosContexto>()); _contextoTeste = new CarrosContexto(); _repositorio = new AutomovelRepositorio(); _automovelTest = ConstrutorObjeto.CriarAutomovel(); _contextoTeste.Database.Initialize(true); }
public void Inicializador() { _automovel = ConstrutorObjeto.CriarAutomovel(); }