Пример #1
0
        public void CustomerDataObjectTest()
        {
            var testObject = TestModels.GetCustomerData();

            Assert.AreEqual("Test", testObject.firstName);
            Assert.AreEqual("LastTest", testObject.lastName);
            Assert.AreEqual("M", testObject.gender);
            Assert.AreEqual(0, testObject.billingAddress);
            Assert.AreEqual(0, testObject.shippingAddress);
            Assert.AreEqual("2015-12-10T18:24:42.000Z", testObject.dateUpdated);
            Assert.AreEqual(0, testObject.numberOrdered);
            Assert.IsTrue(testObject.emails.Count == 1);
            Assert.IsNotNull(testObject.emails);
            Assert.IsTrue(testObject.phones.Count == 1);
            Assert.IsNotNull(testObject.phones);
            Assert.IsTrue(testObject.addresses.Count == 1);
            Assert.IsNotNull(testObject.addresses);
        }
Пример #2
0
 public void CustomerDataToStringTest()
 {
     Assert.IsFalse(TestModels.GetCustomerData().ToString().Length == 0);
 }
Пример #3
0
 public void CustomerDataConvertToJsonTest()
 {
     Assert.IsFalse(TestModels.GetCustomerData().ConvertToJson().Length == 0);
 }