<commit_before>﻿using Optivem.Core.Common.Http;
using Optivem.Infrastructure.AspNetCore;
using Optivem.Template.Core.Application.Customers;
using Optivem.Template.Infrastructure.EntityFrameworkCore;
using Optivem.Template.Web.Test.Clients;
using Optivem.Test.AspNetCore.EntityFrameworkCore;
using System.Threading.Tasks;

namespace Optivem.Template.Web.Test.Fixture
{
    // TODO: VC

    public class TestClient : BaseTestClient<Startup, DatabaseContext>
    {
        public TestClient()
            : base(Startup.DatabaseConnectionKey, e => new DatabaseContext(e))
        {
            Customers = new CustomersControllerClient(Client.ControllerClientFactory);
            Products = new ProductsControllerClient(Client.ControllerClientFactory);
        }

        public CustomersControllerClient Customers { get; }

        public ProductsControllerClient Products { get; }
    }<commit_msg>#129 Startup - Dependency Injection<commit_after>﻿using Optivem.Core.Common.Http;
using Optivem.Infrastructure.AspNetCore;
using Optivem.Template.Core.Application.Customers;
using Optivem.Template.Infrastructure.EntityFrameworkCore;
using Optivem.Template.Web.Test.Clients;
using Optivem.Test.AspNetCore.EntityFrameworkCore;
using System.Threading.Tasks;

namespace Optivem.Template.Web.Test.Fixture
{
    // TODO: VC

    public class TestClient : BaseTestClient<Startup, DatabaseContext>
    {
        // TOD: VS: Check if connection key should be centralized? perhaps strongly typed configuration
        private const string DatabaseConnectionKey = "DefaultConnection";

        public TestClient()
            : base(DatabaseConnectionKey, e => new DatabaseContext(e))
        {
            Customers = new CustomersControllerClient(Client.ControllerClientFactory);
            Products = new ProductsControllerClient(Client.ControllerClientFactory);
        }

        public CustomersControllerClient Customers { get; }

        public ProductsControllerClient Products { get; }
    }
{'fraction_non_alphanumeric': 0.08044243338360986, 'fraction_numerical': 0.0015082956259426848, 'mean_word_length': 3.8536585365853657, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '6818302', 'n_tokens_mistral': 517, 'n_tokens_neox': 504, 'n_words': 107}