public void TestAddCutomerWithMoqSuccess()
        {
            //cretae an object
            Mock<IMyEmail> objEmail = new Mock<IMyEmail>();

            //specify which function to bypass
            objEmail.Setup(x => x.sendEmail()).Returns(true);

            Customer cust = new Customer(objEmail.Object);
            bool isInserted = cust.AddCutomer();
            Assert.AreEqual(isInserted, true);
        }
 public void addCutomer()
 {
     Customer obj = new Customer(new MyEmail());
     Assert.AreEqual(obj.AddCutomer(), true);
 }