|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using Technewlogic.Stasy.Framework;
using Technewlogic.Stasy.Test.Model;
using Technewlogic.Stasy.Test.EntityCollectionTests;
using Technewlogic.Stasy.Framework.Proxy;
using Technewlogic.Stasy.Framework.Transactions;
using Technewlogic.Stasy.Framework.MetaModel;
using Technewlogic.Stasy.Framework.UnitOfWork;
namespace Technewlogic.Stasy.Test.AggregateLinkTests
{
[TestFixture]
public class RejectUnknownAndDuplicate
{
[TestFixtureSetUp]
public void TestFixtureSetUp()
{
}
[SetUp]
public void SetUp()
{
}
[Test]
[ExpectedException(typeof(InvalidOperationException))]
public void RejectUnknownOnUpdate()
{
throw new NotImplementedException();
//var num = _generator.CreateProxy(typeof(NumberWrapper)) as NumberWrapper;
//num._number = new Guid("00000000-0000-0000-0000-000000000003");
//_testCollection.MarkForUpdate(num as IProxy);
}
// Ist das so überhaupt noch gewünscht?
[Test]
[ExpectedException(typeof(InvalidOperationException))] // InvalidDuplicateEntityException
public void RejectInvalidDuplicateOnUpdate()
{
throw new NotImplementedException();
//var num = _generator.CreateProxy(typeof(NumberWrapper)) as NumberWrapper;
//num._number = new Guid("00000000-0000-0000-0000-000000000002");
//_testCollection.MarkForUpdate(num as IProxy);
}
[Test]
[ExpectedException(typeof(InvalidOperationException))]
public void RejectUnknownOnDelete()
{
throw new NotImplementedException();
//var num = _generator.CreateProxy(typeof(NumberWrapper)) as NumberWrapper;
//num._number = new Guid("00000000-0000-0000-0000-000000000042");
//_testCollection.MarkForDelete(num as IProxy);
}
// Ist das so überhaupt noch gewünscht?
[Test]
[ExpectedException(typeof(InvalidOperationException))] // InvalidDuplicateEntityException
public void RejectInvalidDuplicateOnDelete()
{
throw new NotImplementedException();
//var num = _generator.CreateProxy(typeof(NumberWrapper)) as NumberWrapper;
//num._number = new Guid("00000000-0000-0000-0000-000000000002");
//_testCollection.MarkForDelete(num as IProxy);
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.