private LoadedObjectDataWithDataSourceData CreateFetchedOrderData(Order fetchedObject, ObjectID orderID)
        {
            var endPointID           = RelationEndPointObjectMother.CreateRelationEndPointID(fetchedObject.ID, "Customer");
            var loadedObjectDataStub = LoadedObjectDataObjectMother.CreateLoadedObjectDataStub(fetchedObject);
            var dataContainer        = RelationEndPointTestHelper.CreateExistingForeignKeyDataContainer(endPointID, orderID);

            return(new LoadedObjectDataWithDataSourceData(loadedObjectDataStub, dataContainer));
        }
Beispiel #2
0
        private LoadedObjectDataWithDataSourceData CreateFetchedComputerData(Computer fetchedObject, ObjectID EmployeeID)
        {
            var endPointID           = RelationEndPointObjectMother.CreateRelationEndPointID(fetchedObject.ID, "Employee");
            var loadedObjectDataStub = LoadedObjectDataObjectMother.CreateLoadedObjectDataStub(fetchedObject);
            var dataContainer        = RelationEndPointTestHelper.CreateExistingForeignKeyDataContainer(endPointID, EmployeeID);

            return(new LoadedObjectDataWithDataSourceData(loadedObjectDataStub, dataContainer));
        }