public TravisMessageModel(string message, string signature, IMemoryCache cache, Encoding encoding, HttpClient client) { digestedMessage = Sha1.DigestMessage(message, encoding); type = GetTravisType(message); this.signature = Convert.FromBase64String(signature); this.cache = cache; this.client = client; }