public void FindMethodOK() { clsSession ASession = new clsSession(); Boolean Found = false; Int32 SessionID = 4; Found = ASession.Find(SessionID); Assert.IsTrue(Found); }
public void TestEquipmenRequiedFound() { clsSession ASession = new clsSession(); Boolean Found = false; Boolean OK = true; Int32 SessionID = 4; Found = ASession.Find(SessionID); if (ASession.EquipmentRequired != false) { OK = false; } Assert.IsTrue(OK); }
public void TestDateTimeFound() { clsSession ASession = new clsSession(); Boolean Found = false; Boolean OK = true; Int32 SessionID = 4; Found = ASession.Find(SessionID); if (ASession.DateTime != Convert.ToDateTime("03/05/2020 00:00:00")) { OK = false; } Assert.IsTrue(OK); }
public void TestCostFound() { clsSession ASession = new clsSession(); Boolean Found = false; Boolean OK = true; Int32 SessionID = 4; Found = ASession.Find(SessionID); if (ASession.Cost != Convert.ToDecimal(3)) { OK = false; } Assert.IsTrue(OK); }
public void TestSessionTypeFound() { clsSession ASession = new clsSession(); Boolean Found = false; Boolean OK = true; Int32 SessionID = 4; Found = ASession.Find(SessionID); if (ASession.SessionType != "Swimming") { OK = false; } Assert.IsTrue(OK); }
public void TestBranchIDFound() { clsSession ASession = new clsSession(); Boolean Found = false; Boolean OK = true; Int32 SessionID = 4; Found = ASession.Find(SessionID); if (ASession.BranchID != 2) { OK = false; } Assert.IsTrue(OK); }