コード例 #1
0
        public void CheckUserNotToLoginWithWrongCredential()
        {
            UserProfile upObj = new UserProfile();

            upObj.email    = "*****@*****.**";
            upObj.password = "******";

            // arrange
            FakeAPI objFakeAPI = new FakeAPI();

            // act
            bool isLogin = objFakeAPI.IsValidUser(upObj.email, upObj.password);

            // assert
            Assert.IsFalse(isLogin);
        }
コード例 #2
0
        public void IsLoginWithCorrectCredential()
        {
            UserProfile upObj = new UserProfile();

            upObj.email    = "*****@*****.**";
            upObj.password = "******";

            // arrange
            FakeAPI objFakeAPI = new FakeAPI();

            // act
            bool isLogin = objFakeAPI.IsValidUser(upObj.email, upObj.password);

            // assert
            Assert.IsTrue(isLogin);
        }