public void Inicializador() { Database.SetInitializer(new InializadorBanco <AluguelCarrosContexto>()); _contextoTeste = new AluguelCarrosContexto(); _repositorio = new AluguelRepositorio(_contextoTeste); _aluguel = ConstrutorObjeto.CriarAluguel(); _contextoTeste.Database.Initialize(true); }