Exemplo n.º 1
0
 public UserResponse Login(LoginRequest loginDetails)
 {
     if (!loginDetails.Equals(null))
     {
         return(_userRepository.Login(loginDetails));
     }
     else
     {
         return(null);
     }
 }
Exemplo n.º 2
0
        public void Equals_ActuallyEqual()
        {
            var first = new LoginRequest(
                clientVersion: 0,
                communicationProtocolVersion: 0,
                account: "acc",
                password: "******");

            var second = new LoginRequest(
                clientVersion: 0,
                communicationProtocolVersion: 0,
                account: "acc",
                password: "******"
                );

            Assert.IsTrue(first.Equals(second));
        }