Beispiel #1
0
        public void InitializeNewEntrySaveNeeded()
        {
            mainDBHelper.InitializeNewBillEntry("Suresh", true);
            mainDBHelper.UpdateCustomerName("Ram");
            bool isInitialized = mainDBHelper.InitializeNewBillEntry("Suresh", false);

            Assert.IsFalse(isInitialized, "Internal Status of current Bill Entry should not initialized");
        }
Beispiel #2
0
        public void UpdateCustomerName(string customerName)
        {
            bool isUpdateSuccess = dbHelper.UpdateCustomerName(customerName);

            if (!isUpdateSuccess)
            {
                string currentName = dbHelper.GetCustomerName();
                view.UpdateCustomerName(currentName);
            }
        }