public void SerializeObject()
        {
            var fidoFacetId = new FidoFacetId("http://example.com");
            var serialized = JsonConvert.SerializeObject(fidoFacetId);

            Assert.AreEqual("\"http://example.com\"", serialized);
        }
        public void SerializeObject()
        {
            var fidoFacetId = new FidoFacetId("http://example.com");
            var serialized  = JsonConvert.SerializeObject(fidoFacetId);

            Assert.AreEqual("\"http://example.com\"", serialized);
        }
 private static void ValidateOrigin(IEnumerable<FidoFacetId> trustedFacetIds, FidoFacetId origin)
 {
     if (!trustedFacetIds.Any(x => x.Equals(origin)))
         throw new InvalidOperationException(String.Format("{0} is not a recognized trusted origin for this backend", origin));
 }
Exemplo n.º 4
0
 private static void ValidateOrigin(IEnumerable <FidoFacetId> trustedFacetIds, FidoFacetId origin)
 {
     if (!trustedFacetIds.Any(x => x.Equals(origin)))
     {
         throw new InvalidOperationException(String.Format("{0} is not a recognized trusted origin for this backend", origin));
     }
 }