Example #1
0
        public void FindMethodOK()
        {
            clsSession ASession  = new clsSession();
            Boolean    Found     = false;
            Int32      SessionID = 4;

            Found = ASession.Find(SessionID);
            Assert.IsTrue(Found);
        }
Example #2
0
        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);
        }
Example #3
0
        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);
        }
Example #4
0
        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);
        }
Example #5
0
        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);
        }
Example #6
0
        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);
        }