Exemple #1
0
        // This section will be removed later in favor of unit tests.
        // Now the code simple doesn't have enought stability to create a suite of tests.

        public void TestParseConversation(string json)
        {
            ConversationJsonData conversationJsonData = null;
            Conversation         conversation         = null;

            if (string.IsNullOrEmpty(json))
            {
                throw new ArgumentNullException("Conversation json");
            }

            conversationJsonData = this.JsonConverter.Deserialize <ConversationJsonData>(json);
            if (conversationJsonData != null)
            {
                conversation = conversationJsonData.AsConversation(this);
            }

            Debugger.Break();
        }