コード例 #1
0
        public void Check_Password_By_EmailFailed()
        {
            // arrange
            var klantDalStub = new KlantDALStub();
            //var klantdal = new KlantDAL();
            Klant klant = new Klant();

            klantDalStub.ExistReturnValue = false;

            // act
            var Result = klantDalStub.CheckPasswordByEmail(klant);

            // assert
            Assert.False(Result);
        }
コード例 #2
0
        public void Check_Password_By_Email_Passed()
        {
            // arrange
            var klantDalStub = new KlantDALStub();

            //var klantdal = new KlantDAL();

            klantDalStub.ExistReturnValue = true;

            // act
            var Result = klantDalStub.CheckPasswordByEmail("aEmail", "aPassword");

            // assert
            Assert.True(Result);
        }