public void OauthSource_ToXML_Construct_ExpectPropertiesSet()
        {
            //------------Setup for test--------------------------
            var oauthSource = new OauthSource(){Key = "key",Secret = "secret"};

            //------------Execute Test---------------------------
            var outxml = oauthSource.ToXml();
            //------------Assert Results-------------------------
            var readOauthSource = new OauthSource(outxml);
            readOauthSource.Key = "key";
            readOauthSource.Secret = "secret";
            
            var conStringAttr = outxml.Attribute("ConnectionString");
            Assert.IsNotNull(conStringAttr);
            Assert.IsTrue(conStringAttr.Value.IsBase64());            
        }
        public void OauthSource_ToXML_Construct_ExpectPropertiesSet()
        {
            //------------Setup for test--------------------------
            var oauthSource = new OauthSource(){Key = "key",Secret = "secret"};

            //------------Execute Test---------------------------
            var outxml = oauthSource.ToXml();
            //------------Assert Results-------------------------
            Assert.AreEqual(outxml.ToString(), @"<Source ID=""00000000-0000-0000-0000-000000000000"" Name="""" ResourceType=""OauthSource"" IsValid=""false"" ConnectionString=""Secret=secret;Key=key"" Type=""OauthSource"">
  <DisplayName></DisplayName>
  <Category></Category>
  <AuthorRoles></AuthorRoles>
  <ErrorMessages />
  <TypeOf>OauthSource</TypeOf>
</Source>");
        }