|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using Technewlogic.ObjectLounge.Test.Model;
using Technewlogic.ObjectLounge.Framework.BaseConcerns;
using Technewlogic.ObjectLounge.Framework.Proxy;
namespace Technewlogic.ObjectLounge.Test
{
public class C_ChangeTracking_EntityTests : BaseTest
{
/// <summary>
/// An entity is created via the CreateInstance Method.
/// Result: The SynchronizationOperation is Unknown.
/// </summary>
[Test]
public void NewEntity_UnknownState()
{
var newEntity = _engine.CreateInstance<Order>();
AssertAllEmpty();
}
/// <summary>
/// An entity was loaded from the sync provider.
/// Result: The SynchronizationOperation is Nothing.
/// </summary>
[Test]
public void LoadedEntity_NothingState()
{
var oldCustomer = _context.Customers.Single(it => it.Name == Customer.SKName);
var ctc = (oldCustomer as IProxy).ChangeTrackingConcern;
AssertAllEmpty();
}
}
}
|
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.