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; }
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)); }