private void load() { ThuocBUS thBus = new ThuocBUS(); mathuoc.Text = thBus.autogenerate_mathuoc().ToString(); List <Cachdung> listcd = thBus.getcachdung(); List <Donvi> listdv = thBus.getdonvi(); this.load_combobox(listdv, listcd); }
public void ThemThuoc() { ThuocDTO thuoc = new ThuocDTO(); thuocbus = new ThuocBUS(); thuoc.MaThuoc = thuocbus.autogenerate_mathuoc().ToString(); thuoc.TenThuoc = "Teroxin"; thuoc.DonGia = 50000; thuoc.CachDung = "Uống"; thuoc.DVT = "Viên"; bool kq = thuocbus.them(thuoc); Assert.AreEqual(true, kq); }