protected override void Store(IObjectContainerAdapter objectContainer)
		{
			HandlerUpdateTestCaseBase.Holder holder = new HandlerUpdateTestCaseBase.Holder();
			holder._values = CreateValues();
			holder._arrays = CreateArrays();
			objectContainer.Store(holder);
		}
Exemple #2
0
 protected override void AssertObjectsAreUpdated(IExtObjectContainer objectContainer
                                                 )
 {
     HandlerUpdateTestCaseBase.Holder holder = RetrieveHolderInstance(objectContainer);
     AssertUpdatedValues(holder._values);
     AssertUpdatedArrays(holder._arrays);
 }
Exemple #3
0
 protected override void Update(IExtObjectContainer objectContainer)
 {
     HandlerUpdateTestCaseBase.Holder holder = RetrieveHolderInstance(objectContainer);
     UpdateValues(holder._values);
     UpdateArrays(holder._arrays);
     objectContainer.Store(holder, int.MaxValue);
 }
Exemple #4
0
 protected override void Store(IObjectContainerAdapter objectContainer)
 {
     HandlerUpdateTestCaseBase.Holder holder = new HandlerUpdateTestCaseBase.Holder();
     holder._values = CreateValues();
     holder._arrays = CreateArrays();
     objectContainer.Store(holder);
 }
Exemple #5
0
 protected override void AssertObjectsAreReadable(IExtObjectContainer objectContainer
                                                  )
 {
     HandlerUpdateTestCaseBase.Holder holder = RetrieveHolderInstance(objectContainer);
     objectContainer.Activate(holder, int.MaxValue);
     AssertValues(objectContainer, holder._values);
     AssertArrays(objectContainer, holder._arrays);
     AssertQueries(objectContainer);
 }
Exemple #6
0
        private HandlerUpdateTestCaseBase.Holder RetrieveHolderInstance(IExtObjectContainer
                                                                        objectContainer)
        {
            IQuery q = objectContainer.Query();

            q.Constrain(typeof(HandlerUpdateTestCaseBase.Holder));
            IObjectSet objectSet = q.Execute();

            HandlerUpdateTestCaseBase.Holder holder = (HandlerUpdateTestCaseBase.Holder)objectSet
                                                      .Next();
            InvestigateHandlerVersion(objectContainer, holder);
            return(holder);
        }