Beispiel #1
0
        public void getCutomerAccountsSuccessTest()
        {
            moqRepository.Setup(p => p.getCustomerAccounts(1)).Returns(new List <Account> {
                new Account()
                {
                    AccountId = 1, CustomerId = 1, Balance = 1000, AccountType = "Savings", minBalance = 1000
                },
                new Account()
                {
                    AccountId = 2, CustomerId = 1, Balance = 1000, AccountType = "Current", minBalance = 0
                }
            });

            var result = providerObj.getCustomerAccounts(1);

            Assert.That(result, Is.Not.Null);
        }