<commit_before>﻿namespace King.Service.Tests.Data.Model
{
    using King.Azure.BackgroundWorker.Data.Model;
    using Microsoft.VisualStudio.TestTools.UnitTesting;
    using Microsoft.WindowsAzure.Storage.Table;
    using System;

    [TestClass]
    public class ScheduledTaskEntryTests
    {
        [TestMethod]
        public void Constructor()
        {
            new ScheduledTaskEntry();
        }

        [TestMethod]
        public void ConstructorServiceName()
        {
            new ScheduledTaskEntry(Guid.NewGuid().ToString());
        }

        [TestMethod]
        [ExpectedException(typeof(NullReferenceException))]
        public void ConstructorTypeNull()
        {
            new ScheduledTaskEntry((Type)null);
        }

        [TestMethod]
        [ExpectedException(typeof(ArgumentException))]
        public void ConstructorServiceNameNull()
        {
            new ScheduledTaskEntry((string)null);
        }

        [TestMethod]
        public void ConstructorType()
        {
            new ScheduledTaskEntry(this.GetType());
        }

        [TestMethod]
        public void IsTableEntity()
        {
            Assert.IsNotNull(new ScheduledTaskEntry() as TableEntity);
        }

        [TestMethod]
        public void PartitionKey()
        {
            var expected = ScheduledTaskEntry.GenerateLogsPartitionKey(this.GetType().ToString());
            var entity = new ScheduledTaskEntry(this.GetType());
            Assert.AreEqual(expected, entity.PartitionKey);
        }
    }
}<commit_msg>model 100% coverage<commit_after>﻿namespace King.Service.Tests.Data.Model
{
    using King.Azure.BackgroundWorker.Data.Model;
    using Microsoft.VisualStudio.TestTools.UnitTesting;
    using Microsoft.WindowsAzure.Storage.Table;
    using System;

    [TestClass]
    public class ScheduledTaskEntryTests
    {
        [TestMethod]
        public void Constructor()
        {
            new ScheduledTaskEntry();
        }

        [TestMethod]
        public void ConstructorServiceName()
        {
            new ScheduledTaskEntry(Guid.NewGuid().ToString());
        }

        [TestMethod]
        [ExpectedException(typeof(NullReferenceException))]
        public void ConstructorTypeNull()
        {
            new ScheduledTaskEntry((Type)null);
        }

        [TestMethod]
        [ExpectedException(typeof(ArgumentException))]
        public void ConstructorServiceNameNull()
        {
            new ScheduledTaskEntry((string)null);
        }

        [TestMethod]
        public void ConstructorType()
        {
            new ScheduledTaskEntry(this.GetType());
        }

        [TestMethod]
        public void IsTableEntity()
        {
            Assert.IsNotNull(new ScheduledTaskEntry() as TableEntity);
        }

        [TestMethod]
        public void PartitionKey()
        {
            var expected = ScheduledTaskEntry.GenerateLogsPartitionKey(this.GetType().ToString());
            var entity = new ScheduledTaskEntry(this.GetType());
            Assert.AreEqual(expected, entity.PartitionKey);
        }

        [TestMethod]
        public void Identifier()
        {
            var entity = new ScheduledTaskEntry(this.GetType());
            Assert.IsNull(entity.Identifier);
            var data = Guid.NewGuid();
            entity.Identifier = data;
            Assert.AreEqual(data, entity.Identifier);
            entity.Identifier = null;
            Assert.IsNull(entity.Identifier);
        }
    }
}
{'fraction_non_alphanumeric': 0.09174049728493855, 'fraction_numerical': 0.0008573878250928837, 'mean_word_length': 2.0461270670147953, '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': '5453022', 'n_tokens_mistral': 893, 'n_tokens_neox': 870, 'n_words': 155}