public void TestPrepare() { IPrepareSession preSession = new PrepareSession(); String username = "******"; String password = "******"; UserService service = new UserService(); UserDto dto = service.ValidateUser(username, password); Session session = preSession.Prepare(dto); Console.Write(dto.Name); Console.Write(session.Name); Assert.IsNotNull(session, "Should not be null"); }
public Session CreateSession(UserDto user) { IPrepareSession prepareSession = new PrepareSession(); Session session = prepareSession.Prepare(user); return session; }