_usuario = CriaUsuario(new Login("Roberto"), new Senha("Senha"));
var dao = new Mock<IUsuarioDao>();
dao.Setup(d => d.Autenticar(It.IsAny<Login>(), It.IsAny<Senha>())).Returns(_usuario);
var usuario = dao.Object.Autenticar(new Login("Roberto"), new Senha("Senha"));
What do I want to know and is it worth doing this type of test? Because I look like this, I'd rather do the test by accessing the database because then I would test the query
Anyway .. what's the best way?