public BaseAccountScreen(long userId, Guid authKey) { UserTransactionService = new UserTransactionService(); this.User = UserTransactionService.GetUser(userId); this.AuthKey = authKey; AuthService = new AuthService(); }
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"); }
public ActionResult <User> GetUser() { return(_userTransactionService.GetUser()); }