コード例 #1
0
        //feltolti a tualjdonosokat tartalmazo comboboxot, amit hozzaadasnal lehet hasznalni
        private void FillOwnerCb()
        {
            List <Owner> ownerList = owners.GetOwnerList();

            cbOwners.DataSource    = ownerList;
            cbOwners.DisplayMember = "OwnerName";
            cbOwners.ValueMember   = "OwnerID";
        }
コード例 #2
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);
        }