예제 #1
0
        public Versions(IEntryWithArchivedVersionsContract <TEntry, ArchivedObjectVersionContract> contract, IEnumTranslations translator)
        {
            ParamIs.NotNull(() => contract);

            Entry            = contract.Entry;
            ArchivedVersions = contract.ArchivedVersions.Select(t => ArchivedObjectVersion.Create(t, translator)).ToArray();
        }
예제 #2
0
        public Versions(TEntry contract, IEnumerable <ArchivedObjectVersionContract> archivedVersions, IEnumTranslations translator)
        {
            ParamIs.NotNull(() => contract);

            Entry            = contract;
            ArchivedVersions = archivedVersions.Select(t => ArchivedObjectVersion.Create(t, translator)).ToArray();
        }
예제 #3
0
 public ArchivedObjectVersion Version(ArchivedObjectVersionContract contract)
 {
     return(contract != null?ArchivedObjectVersion.Create(contract, EnumTranslations) : null);
 }