Esempio n. 1
0
        public MockModelStorageMod(int?match, int?version, StorageModStateEnum state)
        {
            _matchHash = match != null?TestUtils.GetMatchHash((int)match).Result : null;

            _versionHash = version != null?TestUtils.GetVersionHash((int)version).Result : null;

            _state = state;
        }
Esempio n. 2
0
        private ModActionEnum DoCheck(int repoHash, int repoVersion, int?storageHash, int?storageVersion, StorageModStateEnum state, bool canWrite = true)
        {
            // TODO: restructure a bit for less parameter passing all over the place
            var repoMod    = new MockModelRepositoryMod(repoHash, repoVersion);
            var storageMod = new MockModelStorageMod(storageHash, storageVersion, state)
            {
                CanWrite = canWrite
            };

            return(CoreCalculation.GetModAction(repoMod, storageMod));
        }