Microsoft.Protocols.TestSuites.SharedAdapter.DataElementUtils.CreateCellMainifestDataElement C# (CSharp) Method

CreateCellMainifestDataElement() public static method

This method is used to create the cell manifest data element.
public static CreateCellMainifestDataElement ( ExGuid revisionId, ExGuid>.Dictionary &cellIDMapping ) : DataElement
revisionId ExGuid Specify the revision GUID.
cellIDMapping ExGuid>.Dictionary Input/output parameter to represent the mapping of cell manifest.
return DataElement
        public static DataElement CreateCellMainifestDataElement(ExGuid revisionId, ref Dictionary<CellID, ExGuid> cellIDMapping)
        {
            CellManifestDataElementData data = new CellManifestDataElementData();
            data.CellManifestCurrentRevision = new CellManifestCurrentRevision() { CellManifestCurrentRevisionExtendedGUID = new ExGuid(revisionId) };
            DataElement dataElement = new DataElement(DataElementType.CellManifestDataElementData, data);

            CellID cellID = new CellID(new ExGuid(1u, RootExGuid), new ExGuid(1u, CellSecondExGuid));
            cellIDMapping.Add(cellID, dataElement.DataElementExtendedGUID);
            return dataElement;
        }