Ejemplo n.º 1
0
        public BaseAccountScreen(long userId, Guid authKey)
        {
            UserTransactionService = new UserTransactionService();
            this.User = UserTransactionService.GetUser(userId);

            this.AuthKey = authKey;
            AuthService  = new AuthService();
        }
Ejemplo n.º 2
0
        public void GetUser_AfterRegister()
        {
            //Arrange
            var user1 = new User
            {
                Username  = "******",
                FirstName = "test1",
                LastName  = "test1",
                Password  = "******"
            };

            AuthService auth = new AuthService();

            auth.Register(user1);
            UserTransactionService transactionService = new UserTransactionService();

            //act
            var user = transactionService.GetUser(user1.Id);

            //Assert
            // var transaction = transactionService.GetLastTransactionForUser(user.Id);
            Assert.IsNotNull(user, "user is null after register");
        }
Ejemplo n.º 3
0
 public ActionResult <User> GetUser()
 {
     return(_userTransactionService.GetUser());
 }