public void GetColorsTest(bool ignoreCache) { var actual = GwApi.GetColors(ignoreCache); var expected = TestData.ColorEntriesExpected; VerifyColors(expected, actual); }
public void Test() { int build = GwApi.GetBuildNumber(); GwApi.Network = new NetworkHandler(); GwApi.GetColors(true); ResponseCache.Cache.Save(); }
public void Refresh(bool forceUpdate = false) { EntryDictionary <int, ColorEntry> colors = null; lock (Colors) { Status = "Updating"; colors = GwApi.GetColors(forceUpdate); Status = "Done"; Colors = colors; } OnColorsUpdated(colors); }