Beispiel #1
0
        public void LogIn_Ok()
        {
            var regData = InstanceFactory.RegistrationData();
            var auth    = InstanceFactory.AuthorizeData(regData);

            AuthorizationService.RegisterMember(regData);
            var token = AuthorizationService.LogIn(auth);

            Assert.IsNotNull(token);
            Assert.AreNotEqual(token.UserId, Guid.Empty);
        }
Beispiel #2
0
 public ActionResult <UserToken> Login([FromBody] AuthData data)
 {
     return(_authService.LogIn(data));
 }