Beispiel #1
0
        public void LoginUser_BadCredentials_ShouldBeFalse()
        {
            var user   = FakeUserFactory.GetBadDummyUser();
            var result = _userServices.login(user.email, user.password);

            result.Should().BeFalse();
        }
Beispiel #2
0
        public void AddNewUser_AlreadyExists_ShouldBeFalse()
        {
            var user   = FakeUserFactory.GetDummyUser();
            var result = _userServices.AddUser(user.email, user.password, user.isLibrarian);

            result
            .Should()
            .BeFalse();
        }