예제 #1
0
        public void newCustomerTest()
        {
            //Arrange
            CKIR  KIR  = new CKIR();
            CBank bank = new CBank(KIR);

            bank.AddCustomer("Ivan", "Pavlov", 1);

            //Assert
            Assert.IsNotNull(bank.GetCustomerList());
            Assert.AreEqual(bank.GetCustomer(1).GetName(), "Ivan");
            Assert.AreEqual(bank.GetCustomer(1).GetSurname(), "Pavlov");
            Assert.AreEqual(bank.GetCustomer(1).GetCustomerID(), 1);
        }