Exemplo n.º 1
0
        public void GetOwnerList_ManualMock_MethodCalled()
        {
            Owners  owners = new Owners();
            MockDAL mock   = new MockDAL();

            owners.SetDal(mock);
            var ret = owners.GetOwnerList();

            Assert.AreEqual(true, mock.ExecuteReaderCalled);
        }