/// <inheritdoc />
        public Stream FetchData(string url)
        {
            var responseObject = new FailureObject { Code = "OK", Reason = url };

            var json = JsonConvert.SerializeObject(responseObject);

            #if PORTABLE
            return new MemoryStream(PortableEncoding.Default.GetBytes(json));
            #else
            return new MemoryStream(Encoding.Default.GetBytes(json));
            #endif
        }
        /// <inheritdoc />
        public Stream FetchData(string url)
        {
            var responseObject = new FailureObject {
                Code = "OK", Reason = url
            };

            var json = JsonConvert.SerializeObject(responseObject);

#if PORTABLE
            return(new MemoryStream(PortableEncoding.Default.GetBytes(json)));
#else
            return(new MemoryStream(Encoding.Default.GetBytes(json)));
#endif
        }
 public BNetFailureObjectReturnedException(FailureObject failureObject)
     :
     this()
 {
     FailureObject = failureObject;
 }
 public BNetFailureObjectReturnedException(FailureObject failureObject)
     :
         this()
 {
     FailureObject = failureObject;
 }