Ejemplo n.º 1
0
        public void CanCustomerInquiryInsert()
        {
            int isSaved = 0;
            using (var context = new CustomerInquiryRepository(new UnitOfWork()))
            {
                var cust = new CustomerInquiry
                {
                    cust_name="KK",
                    email_addr_txt="*****@*****.**",
                    //inquiry_id=1,
                    notes="Jesus is the Savior",
                    ph_nbr="",
                    rec_crt_by="KK",
                    rec_crt_ts=DateTime.UtcNow,
                    rec_upd_by="KK",
                    rec_upd_ts = DateTime.UtcNow

                };
                context.InsertOrUpdate(cust)
                ;

               isSaved = context.Save();

                Assert.AreEqual(1, isSaved);
            }
        }
Ejemplo n.º 2
0
        public void CanCustomerInquiryInsert()
        {
            int isSaved = 0;

            using (var context = new CustomerInquiryRepository(new UnitOfWork()))
            {
                var cust = new CustomerInquiry
                {
                    cust_name      = "KK",
                    email_addr_txt = "*****@*****.**",
                    //inquiry_id=1,
                    notes      = "Jesus is the Savior",
                    ph_nbr     = "",
                    rec_crt_by = "KK",
                    rec_crt_ts = DateTime.UtcNow,
                    rec_upd_by = "KK",
                    rec_upd_ts = DateTime.UtcNow
                };
                context.InsertOrUpdate(cust)
                ;

                isSaved = context.Save();

                Assert.AreEqual(1, isSaved);
            }
        }