public virtual void TestTypeHandler() { _translator = null; _typeHandler = new ItemTypeHandler(); Store(new Item(42)); AssertTypeHandlerCalls(1, 0); var item = RetrieveOnlyItemInstance(); Assert.AreEqual(42, item._id); AssertTypeHandlerCalls(0, 1); UpdateItem(); AssertTypeHandlerCalls(1, 1); }
public virtual void TestTypeHandler() { _translator = null; _typeHandler = new ItemTypeHandler(); Store(new Item(42)); AssertTypeHandlerCalls(1, 0); var item = RetrieveOnlyItemInstance(); Assert.AreEqual(42, item._id); AssertTypeHandlerCalls(0, 1); UpdateItem(); AssertTypeHandlerCalls(1, 1); }
/// <exception cref="System.Exception"></exception> public override void SetUp() { _translator = new ItemTranslator(); }
/// <exception cref="System.Exception"></exception> public override void SetUp() { _translator = new ItemTranslator(); }