Exemplo n.º 1
0
        public void UnitTestRegisterCustomerWithOutDateOfBirth()
        {
            var cust = new CustomerParam()
            {
                FirstName = "Josue",
                SurName   = "Ortiz",
                Email     = "*****@*****.**"
            };

            var customer = ConsultarApi(
                JsonConvert.SerializeObject(cust),
                recurso.RegistrarCliente
                );

            var result = JsonConvert.DeserializeObject <CustomerDto>(customer.Content);

            var expected = true;

            Assert.AreEqual(expected, result.Response);
        }
Exemplo n.º 2
0
        public void UnitTestRegisterCustomerWithOutEmail()
        {
            var cust = new CustomerParam()
            {
                FirstName   = "Josue",
                SurName     = "Ortiz",
                Email       = "",
                DateOfBirth = new DateTime(1990, 12, 18)
            };

            var customer = ConsultarApi(
                JsonConvert.SerializeObject(cust),
                recurso.RegistrarCliente
                );

            var result = JsonConvert.DeserializeObject <CustomerDto>(customer.Content);

            var expected = false;

            Assert.AreEqual(expected, result.Response);
        }