예제 #1
0
        public void LoginUser_GoodCredentials_ShouldBeTrue()
        {
            var user   = FakeUserFactory.GetDummyUser();
            var result = _userServices.login(user.email, user.password);

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

            result
            .Should()
            .BeFalse();
        }