Created
November 24, 2010 15:44
-
-
Save jfromaniello/713839 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Test] | |
public void CargaDepositos() | |
{ | |
CommitInNewSession(s => | |
{ | |
s.Save(new Deposito { Nombre = "Puesto" , Fisico = true}); | |
s.Save(new Deposito {Nombre = "Galpon", Fisico = true}); | |
s.Save(new Deposito { Nombre = "Abc" , Fisico = false}); | |
}); | |
var queryRemitoIngresoDatosIniciales = new DepositosFisicosOrdenadosPorNombre(sessions); | |
CommitInNewSession(() => | |
{ | |
var depositos = queryRemitoIngresoDatosIniciales.Execute().ToArray(); | |
depositos.Length.Should().Be.EqualTo(2); | |
depositos.First().Nombre.Should().Be.EqualTo("Galpon"); | |
depositos.Last().Nombre.Should().Be.EqualTo("Puesto"); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment