<commit_before>﻿using BatteryCommander.Web.Models;
using BatteryCommander.Web.Services;
using Microsoft.Extensions.Options;
using System;
using System.Threading.Tasks;
using Xunit;

namespace BatteryCommander.Tests
{
    public class AirTableServiceTests
    {
        private const String AppKey = "";

        private const String BaseId = "";

        [Fact]
        public async Task Try_Get_Records()
        {
            if (String.IsNullOrWhiteSpace(AppKey)) return;

            // Arrange

            var options = Options.Create(new AirTableSettings { AppKey = AppKey, BaseId = BaseId });

            var service = new AirTableService(options);

            // Act

            var records = await service.GetRecords();

            // Assert

            Assert.NotEmpty(records);
        }
    }
}<commit_msg>Add placeholder for testing retrieving POs<commit_after>﻿using BatteryCommander.Web.Models;
using BatteryCommander.Web.Services;
using Microsoft.Extensions.Options;
using System;
using System.Threading.Tasks;
using Xunit;

namespace BatteryCommander.Tests
{
    public class AirTableServiceTests
    {
        private const String AppKey = "";

        private const String BaseId = "";

        [Fact]
        public async Task Try_Get_Records()
        {
            if (String.IsNullOrWhiteSpace(AppKey)) return;

            // Arrange

            var options = Options.Create(new AirTableSettings { AppKey = AppKey, BaseId = BaseId });

            var service = new AirTableService(options);

            // Act

            var records = await service.GetRecords();

            // Assert

            Assert.NotEmpty(records);
        }

        [Fact]
        public async Task Get_Purchase_Order()
        {
            if (String.IsNullOrWhiteSpace(AppKey)) return;

            // Arrange

            var options = Options.Create(new AirTableSettings { AppKey = AppKey, BaseId = BaseId });

            var service = new AirTableService(options);

            // Act

            var order = await service.GetPurchaseOrder(id: "reclJK6G3IFjFlXE1");

            // Assert

            // TODO
        }
    }
}
{'fraction_non_alphanumeric': 0.08659217877094973, 'fraction_numerical': 0.0013966480446927375, 'mean_word_length': 2.0310296191819464, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3623366', 'n_tokens_mistral': 576, 'n_tokens_neox': 545, 'n_words': 140}