public void RoleInstanceOK()
 {
     //create an instance of the class
     Role NewRole = new Role();
     //test to see if that exists
     Assert.IsNotNull(NewRole);
 }
        public void RoleLastNameMaximumPlusOne()
        {
            Role NewRole = new Role();
            Boolean valid = false;
            int RoleId = 1;
            string Name = new string('A', Role.textMaximumLength + 1);

            valid = NewRole.Valid(RoleId, Name);
        }
        public void RoleLastNameExtremeMinimumLength()
        {
            Role NewRole = new Role();
            Boolean valid = false;
            int RoleId = 1;
            string Name = new string('A', Role.textExtremeMin);

            valid = NewRole.Valid(RoleId, Name);
        }
        public void RoleLastNameMaximumMinusOne()
        {
            Role NewRole = new Role();
            Boolean valid = false;
            int RoleId = 1;
            string Name = new string('A', Role.textMaximumLength - 1);

            valid = NewRole.Valid(RoleId, Name);
            Assert.IsTrue(valid);
        }
        public void RoleNameOk()
        {
            //create an instance of the class
            Role NewRole = new Role();

            string TestRoleName = "Johnson";
            NewRole.Name = TestRoleName;
            //test to see if that exists
            Assert.AreEqual(NewRole.Name, TestRoleName);
        }