<commit_before>﻿using KnowYourKnockout.Business;
using KnowYourKnockout.Data;
using KnowYourKnockout.Data.Models;
using KnowYourKnockout.Data.Repositories;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace KnowYourKnockout.TempTestConsole
{
    public class Program
    {
        private const string CONN_STRING = @"Server=DESKTOP-STNOHJO;Database=KnowYourKnockout;Trusted_Connection=True";

        private static UserLogic _userLogic;

        public static void Main(string[] args)
        {
            DbContextOptionsBuilder<KnowYourKnockoutContext> builder = new DbContextOptionsBuilder<KnowYourKnockoutContext>();
            builder.UseSqlServer(CONN_STRING);

            IKnowYourKnockoutContext context = new KnowYourKnockoutContext(builder.Options);
            IKnowYourKnockoutRepository<User, Guid> repo = new UserRepository(context);
            IKnowYourKnockoutDataApi api = new KnowYourKnockoutDataApi(repo);
            _userLogic = new UserLogic(api);

            Go();
            Go();
            Go();
            Go();

            Console.WriteLine("END");
        }

        private static void Go()
        {
            Start();
            GetUsers();
            var id = AddUser();
            var user = GetUser(id);
            var isSuccess = DeleteUser(user);
            Console.WriteLine(isSuccess);
            End();
        }

        private static List<User> GetUsers()<commit_msg>Fixed test console project to build<commit_after>﻿using KnowYourKnockout.Business;
using KnowYourKnockout.Data;
using KnowYourKnockout.Data.Models;
using KnowYourKnockout.Data.Repositories;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace KnowYourKnockout.TempTestConsole
{
    public class Program
    {
        private const string CONN_STRING = @"Server=DESKTOP-STNOHJO;Database=KnowYourKnockout;Trusted_Connection=True";

        private static UserLogic _userLogic;

        public static void Main(string[] args)
        {
            DbContextOptionsBuilder<KnowYourKnockoutContext> builder = new DbContextOptionsBuilder<KnowYourKnockoutContext>();
            builder.UseSqlServer(CONN_STRING);

            IKnowYourKnockoutContext context = new KnowYourKnockoutContext(builder.Options);
            IKnowYourKnockoutRepository<User, Guid> repo = new UserRepository(context);
            IKnowYourKnockoutDataApi api = new KnowYourKnockoutDataApi(repo);
            _userLogic = new UserLogic(api, new Utility.Log((KnowYourKnockoutContext)context));

            Go();
            Go();
            Go();
            Go();

            Console.WriteLine("END");
        }

        private static void Go()
        {
            Start();
            GetUsers();
            Console.WriteLine(DeleteUser(GetUser(AddUser())));
            End();
        }

        private static List<User> GetUsers()
{'fraction_non_alphanumeric': 0.08526107072042301, 'fraction_numerical': 0.0, 'mean_word_length': 2.7790262172284645, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6602692', 'n_tokens_mistral': 861, 'n_tokens_neox': 799, 'n_words': 165}