public SeguradoTest() { _context = new ReplyContext(new DbContextOptionsBuilder <ReplyContext>().UseInMemoryDatabase(Guid.NewGuid().ToString()).Options); _context.Segurado.AddRange(SeguradoMock.Dados()); _context.SaveChanges(); _seguradoRepository = new SeguradoRepository(_context); _seguradoApplicationService = new SeguradoApplicationService(_seguradoRepository); _valorAleatorio = new Random(); }