Пример #1
0
        public void SuccessAccountCreationTestMethod()
        {
            Customer obj = new Customer()
            {
                Email        = "*****@*****.**",
                CustomerName = "Anuj",
                Address      = "aaaa",
                Password     = "******",
                MobileNumber = "1111111111",
            };
            var result = controller.AddNew(obj);

            customerId = obj.CustomerId;
            Assert.IsInstanceOfType(result, typeof(OkObjectResult));
        }
Пример #2
0
        public void SuccessAccountCreationTestMethod()
        {
            Customer obj = new Customer()
            {
                Email        = "*****@*****.**",
                CustomerName = "ABCD",
                Address      = "ABCD1",
                Password     = "******",
                MobileNumber = "0000000000",
            };
            var result = controller.AddNew(obj);

            Assert.IsInstanceOfType(result, typeof(OkObjectResult));
        }