public void HashCreatorTest_Origin() { var settingsMock = new Mock <ISettings>(); settingsMock.SetupGet(x => x.Secret) .Returns("5ojZ7ltWda/CMrY6IhVwdvAMYK9Gy5QLIdrSDitg9/ugY9y8YL8haQp7ZR6EXZo182gNenXv0Er4F2p1myI0MA=="); settingsMock.SetupGet(x => x.Gateway) .Returns(@"https://hu2.forgeofempires.com/game/json?h=r7XrEknlQw50DdNDiy_bs21V"); var hashCreator = new HashCreator(settingsMock.Object); var signature = hashCreator.GetSignature("[{\"__class__\":\"ServerRequest\",\"requestData\":[],\"requestClass\":\"StartupService\",\"requestMethod\":\"getData\",\"requestId\":1}]"); Assert.AreEqual("d3809d0e2c", signature); }