<commit_before>﻿using NUnit.Framework;
using System.Collections.Generic;

namespace WhenItsDone.Models.Tests.ClientTests
{
    [TestFixture]
    class ClientConstructorTests
    {
        [Test]
        public void ClientClass_ShouldHave_ParameterlessConstructor()
        {
            var obj = new Client();

            Assert.IsInstanceOf<Client>(obj);
        }

        [Test]
        public void Constructor_ShouldSet_Hashset_ToJobsCollection()
        {
            var obj = new Client();

            var result = obj.Jobs.GetType() == typeof(HashSet<Job>);

            Assert.IsTrue(result);
        }

        [Test]
        public void Constructor_ShouldNotSet_IdProperty()
        {
            var obj = new Client();

            Assert.AreEqual(0, obj.Id);
        }

        [Test]
        public void Constructor_ShouldNotSet_FirstNameProperty()
        {
            var obj = new Client();

            Assert.AreEqual(null, obj.FirstName);
        }

        [Test]
        public void Constructor_ShouldNotSet_LastNameProperty()
        {
            var obj = new Client();

            Assert.AreEqual(null, obj.LastName);
        }

        [Test]
        public void Constructor_ShouldNotSet_AgeProperty()
        {
            var obj = new Client();

            Assert.AreEqual(0, obj.Age);
        }

        [Test]
        public void Constructor_ShouldSet_IsAvailable_ToTrue()
        {
            var obj = new Client();

            Assert.IsTrue(obj.IsAvailable);
        }

        [Test]
        public void Constructor_ShouldNotSet_RatingProperty()
        {
            var obj = new Client();

            Assert.AreEqual(0, obj.Rating);
        }

        [Test]
        public void Constructor_ShouldNotSet_ContactInformationIdProperty()
        {
            var obj = new Client();

            Assert.AreEqual(0, obj.ContactInformationId);
        }

        [Test]
        public void Constructor_ShouldNotSet_ContactInformationProperty()
        {
            var obj = new Client();

            Assert.AreEqual(null, obj.ContactInformation);
        }

        [Test]
        public void Constructor_ShouldNotSet_IsDeletedProperty()
        {
            var obj = new Client();

            Assert.IsFalse(obj.IsDeleted);
        }
    }
}<commit_msg>added more tests in Client constructor tests<commit_after>﻿using NUnit.Framework;
using System.Collections.Generic;
using WhenItsDone.Models.Enums;

namespace WhenItsDone.Models.Tests.ClientTests
{
    [TestFixture]
    class ClientConstructorTests
    {
        [Test]
        public void ClientClass_ShouldHave_ParameterlessConstructor()
        {
            var obj = new Client();

            Assert.IsInstanceOf<Client>(obj);
        }

        [Test]
        public void Constructor_ShouldSet_Hashset_ToJobsCollection()
        {
            var obj = new Client();

            var result = obj.Jobs.GetType() == typeof(HashSet<Job>);

            Assert.IsTrue(result);
        }

        [Test]
        public void Constructor_ShouldSet_Hashset_ToPaymentsCollection()
        {
            var obj = new Client();

            var result = obj.Payments.GetType() == typeof(HashSet<Payment>);

            Assert.IsTrue(result);
        }

        [Test]
        public void Constructor_ShouldNotSet_IdProperty()
        {
            var obj = new Client();

            Assert.AreEqual(0, obj.Id);
        }

        [Test]
        public void Constructor_ShouldNotSet_FirstNameProperty()
        {
            var obj = new Client();

            Assert.AreEqual(null, obj.FirstName);
        }

        [Test]
        public void Constructor_ShouldNotSet_LastNameProperty()
        {
            var obj = new Client();

            Assert.AreEqual(null, obj.LastName);
        }

        [Test]
        public void Constructor_ShouldNotSet_AgeProperty()
        {
            var obj = new Client();

            Assert.AreEqual(0, obj.Age);
        }

        [Test]
        public void Constructor_ShouldSet_IsAvailable_ToTrue()
        {
            var obj = new Client();

            Assert.IsTrue(obj.IsAvailable);
        }

        [Test]
        public void Constructor_ShouldNotSet_RatingProperty()
        {
            var obj = new Client();

            Assert.AreEqual(0, obj.Rating);
        }

        [Test]
        public void Constructor_ShouldNotSet_ContactInformationIdProperty()
        {
            var obj = new Client();

            Assert.AreEqual(0, obj.ContactInformationId);
        }

        [Test]
        public void Constructor_ShouldNotSet_ContactInformationProperty()
        {
            var obj = new Client();

            Assert.AreEqual(null, obj.ContactInformation);
        }

        [Test]
        public void Constructor_ShouldNotSet_IsDeletedProperty()
        {
            var obj = new Client();

            Assert.IsFalse(obj.IsDeleted);
        }

        [Test]
        public void Constructor_ShouldNotSet_GenderProperty()
        {
            GenderType expectedDefault = GenderType.Undefined;

            var obj = new Client();

            Assert.AreEqual(expectedDefault, obj.Gender); 
        }
    }
}
{'fraction_non_alphanumeric': 0.08709055876685934, 'fraction_numerical': 0.0015414258188824663, 'mean_word_length': 1.7335439705107951, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '7594352', 'n_tokens_mistral': 1406, 'n_tokens_neox': 1342, 'n_words': 272}