/// <summary>
        /// Creates temporary client in dataBase.
        /// </summary>
        /// <remarks> Used whenever client storted in database is needed.</remarks>
        protected bool CreateUserinDatabase()
        {
            //Arrange
            var login = new Login();
            var randomStringGenerator = new RandomStringGenerator();

            formLogin = new FormLogin();
            var database = new DataClassesBettingParlorDataContext();

            username     = randomStringGenerator.GenerateRandomString();
            password     = randomStringGenerator.GenerateRandomString();
            connectionId = randomStringGenerator.GenerateRandomString();

            //Fill textBoxes on form to pass checkIfTextBoxesAreEmpty verification.
            formLogin.textBoxUsername.Text = username;
            formLogin.textBoxPassword.Text = password;

            //true if client is able to register, false if not.
            return(login.RegisterNewPlayer(username, password, formLogin));
        }