static partial void InstanceFactory(ref WorkItemCollectionImpl instance, string callerName) { WorkItemStoreImpl store = WorkItemStoreImpl_UnitTests.GetInstance(); IReadOnlyList <WorkItemImpl> items = new List <WorkItemImpl> { WorkItemImpl_UnitTests.GetInstance() }; instance = new WorkItemCollectionImpl(store, items); }
public void BatchSave_UnitTest() { IWorkItem[] workitems = default(IWorkItem[]); ExecuteMethod( () => { return((IWorkItemStore)GetInstance()); }, instance => { workitems = new[] { (IWorkItem)WorkItemImpl_UnitTests.GetInstance() }; BatchSave_PreCondition(instance, ref workitems); }, instance => { instance.BatchSave(workitems); }, instance => { BatchSave_PostValidate(instance, workitems); }); }
static partial void InstanceFactory(ref BatchSaveErrorImpl instance, string callerName) { instance = new BatchSaveErrorImpl(new Exception(), WorkItemImpl_UnitTests.GetInstance()); }