private static void TestCreateVillage(int playerId)
        {
            villageService = Container.Resolve <IVillageService>();
            villageService.CreateVillage(playerId);
            var firstVillage = villageService.GetVillage(1);

            Console.WriteLine(firstVillage != null ? "VillageService - Test01 - OK" : "VillageService - Test01 - FAIL");
            ListResourcesByVillage(1);
            ListBuildingsByVillage(1);
            ListProductsByVillage(1);
            ListUnitsByVillage(1);
        }
        /// <summary>
        /// Performs player registration
        /// </summary>
        /// <param name="registrationDto">Player registration details</param>
        /// <param name="success">argument that tells whether the registration was successful</param>
        /// <returns>Registered player account id</returns>
        public Guid RegisterPlayer(UserRegistrationDTO registrationDto, out bool success)
        {
            var player = playerService.GetPlayerAccordingToUserName(registrationDto.UserName);

            if (player != null)
            {
                success = false;
                return(new Guid());
            }

            var accountId = _userService.RegisterUserAccount(registrationDto);
            int playerId  = playerService.CreatePlayer(accountId);

            villageService.CreateVillage(playerId);
            success = true;
            return(accountId);
        }