コード例 #1
0
        public void TestLoginEmployeeMissingUserAndPass()
        {
            //Arrange
            string username = "";
            string pass     = "";
            bool   verified = false;

            using (PersonService.PersonServiceClient proxy = new PersonService.PersonServiceClient())
            {
                //act
                verified = proxy.LogOn(username, pass);
            }
            //assert
            Assert.IsFalse(verified);
        }
コード例 #2
0
        public void TestLoginEmployeeSuccesful()
        {
            //arrange
            string username = "******";
            string pass     = "******";
            bool   verified = false;

            using (PersonService.PersonServiceClient proxy = new PersonService.PersonServiceClient())
            {
                //act
                verified = proxy.LogOn(username, pass);
            }
            //assert
            Assert.IsTrue(verified);
        }