//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"; }
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); }