public void Test_SearlizeToString()
        {
            IJsonSearlizer searlizer = new JsonNetSearlizer();

            MSDeployDeploymentParameters msdParams = RandomDataHelper.Instance.CreateRandomMSDeployDeploymentParameters();
            string result = searlizer.Searlize(msdParams);

            Assert.IsNotNull(result);
            Assert.IsTrue(result.Length > 1);
        }
        public void TestJsonNetSearlizer_Searlize()
        {
            IJsonSearlizer searlizer = new JsonNetSearlizer();

            TestClass tc = new TestClass {
                Id = RandomDataHelper.Instance.Primitives.GetRandomLong(int.MaxValue),
                FirstName = Guid.NewGuid().ToString(),
                LastName = Guid.NewGuid().ToString()
            };

            string expectedString = string.Format(
                @"{{""Id"":{0},""FirstName"":""{1}"",""LastName"":""{2}""}}",
                tc.Id,
                tc.FirstName,
                tc.LastName);

            string actualString = searlizer.Searlize(tc);
            Assert.AreEqual(expectedString, actualString);
        }