diff Agendas/trunk/src/Agendas.Tests/Cruds/PatrocinadorCrudNhTests.cs @ 200:5346c0500594 deploy pre 1.0

Pasando a estructura de db fija, ya no se crea automáticamente. Se comenta lo referente a Patrocinadores que queda para alguna futura versión. Script para tablas de v1.0
author nelopauselli
date Wed, 17 Aug 2011 17:54:45 -0300
parents 2d1adbaf0373
children
line wrap: on
line diff
--- a/Agendas/trunk/src/Agendas.Tests/Cruds/PatrocinadorCrudNhTests.cs	Mon Aug 15 20:00:02 2011 -0400
+++ b/Agendas/trunk/src/Agendas.Tests/Cruds/PatrocinadorCrudNhTests.cs	Wed Aug 17 17:54:45 2011 -0300
@@ -3,67 +3,63 @@
 using AltNetHispano.Agendas.Repositories.NHibernate;
 using Moq;
 using NHibernate;
-using NHibernate.Cfg;
-using NHibernate.Tool.hbm2ddl;
 using NUnit.Framework;
 
 namespace AltNetHispano.Agendas.Tests.Cruds
 {
-	[TestFixture]
-	public class PatrocinadorCrudNhTests
-	{
-		private PatrocinadorCrud _patrocinadorCrud;
+	//[TestFixture]
+	//public class PatrocinadorCrudNhTests
+	//{
+	//    private PatrocinadorCrud _patrocinadorCrud;
 
-		#region SetUp
+	//    #region SetUp
+
+	//    [SetUp]
+	//    public void BorrarRepositorios()
+	//    {
+	//        NhHelperTest.CleanDb();
+	//    }
 
-		[SetUp]
-		public void BorrarRepositorios()
-		{
-			Configuration cfg = NhHelper.GetConfiguration();
-			var schemaExport = new SchemaExport(cfg);
-			schemaExport.Create(false, true);
-		}
+	//    [SetUp]
+	//    public void SetearUsuario()
+	//    {
+	//        var seguridad = new Mock<ISeguridad>();
+	//        seguridad.Setup(s => s.GetUserName()).Returns("neluz");
+	//        IdentityContext.Init(seguridad.Object, new PersonaRepository(NhHelper.GetSessionFactory()));
+	//    }
 
-		[SetUp]
-		public void SetearUsuario()
-		{
-			var seguridad = new Mock<ISeguridad>();
-			seguridad.Setup(s => s.GetUserName()).Returns("neluz");
-			IdentityContext.Init(seguridad.Object, new PersonaRepository(NhHelper.GetSessionFactory()));
-		}
+	//    [SetUp]
+	//    public void CreateCrud()
+	//    {
+	//        ISessionFactory sessionFactory = NhHelper.GetSessionFactory();
+	//        _patrocinadorCrud = new PatrocinadorCrud(() => new PatrocinadorRepository(sessionFactory), () => new RequestEmulator(sessionFactory));
+	//    }
 
-		[SetUp]
-		public void CreateCrud()
-		{
-			ISessionFactory sessionFactory = NhHelper.GetSessionFactory();
-			_patrocinadorCrud = new PatrocinadorCrud(() => new PatrocinadorRepository(sessionFactory), () => new RequestEmulator(sessionFactory));
-		}
+	//    #endregion
 
-		#endregion
+	//    [Test]
+	//    public void Create()
+	//    {
+	//        _patrocinadorCrud.Create();
+	//    }
 
-		[Test]
-		public void Create()
-		{
-			_patrocinadorCrud.Create();
-		}
+	//    [Test]
+	//    public void Read()
+	//    {
+	//        _patrocinadorCrud.Read();
+	//    }
 
-		[Test]
-		public void Read()
-		{
-			_patrocinadorCrud.Read();
-		}
+	//    [Test]
+	//    public void Update()
+	//    {
+	//        _patrocinadorCrud.Update();
+	//    }
 
-		[Test]
-		public void Update()
-		{
-			_patrocinadorCrud.Update();
-		}
+	//    [Test]
+	//    public void Delete()
+	//    {
+	//        _patrocinadorCrud.Delete();
+	//    }
 
-		[Test]
-		public void Delete()
-		{
-			_patrocinadorCrud.Delete();
-		}
-
-	}
+	//}
 }
\ No newline at end of file