public void FindMethodOK() { clsServices AService = new clsServices(); Boolean Found = false; Int32 Price = 50; Found = AService.Find(Price); Assert.IsTrue(Found); }
public void TestPriceNoFound() { clsServices AService = new clsServices(); Boolean Found = false; Boolean OK = true; Int32 Price = 50; Found = AService.Find(Price); if (AService.Price != 50) { OK = false; } Assert.IsTrue(OK); }
public void TestStaffFound() { clsServices AService = new clsServices(); Boolean Found = false; Boolean OK = true; Int32 Price = 50; Found = AService.Find(Price); if (AService.Staff != "Test Staff") { OK = false; } Assert.IsTrue(OK); }
protected void btnFind_Click(object sender, EventArgs e) { clsServices AService = new clsServices(); String ServiceName; Boolean Found = false; ServiceName = Convert.ToString(txtServiceName.Text); Found = AService.Find(ServiceName); if (Found == true) { txtServiceName.Text = AService.ServiceName; txtStaff.Text = AService.Staff; txtPrice.Text = AService.Price.ToString(); txtDuration.Text = AService.Duration.ToString(); } }