public void SetUp()
        {
            _dataFunctions = new Mock <IDataFunctions>();
            _dataFunctions.Setup(x => x.GetDataTable(It.IsAny <string>(), It.IsAny <string>())).Returns(new DataTable());

            _license = new licensedetail(_dataFunctions.Object);
        }
        public void licensedetail_getCLID_Method_No_Parameters_Simple_Call_Test()
        {
            // Arrange
            var licensedetail = new licensedetail();

            // Act, Assert
            Should.NotThrow(() => licensedetail.getCLID());
        }
        public void licensedetail_UpdateLicense_Method_2_Parameters_Simple_Call_Test()
        {
            // Arrange
            var sender        = Fixture.Create <object>();
            var e             = Fixture.Create <EventArgs>();
            var licensedetail = new licensedetail();

            // Act, Assert
            Should.Throw <System.Exception>(() => licensedetail.UpdateLicense(sender, e));
        }
        public void licensedetail_getCLID_Method_With_No_Parameters_2_Calls_Compare_Test()
        {
            // Arrange
            var licensedetail = new licensedetail();

            // Act
            Func <int> getClId1 = () => licensedetail.getCLID();
            Func <int> getClId2 = () => licensedetail.getCLID();
            var        result1  = getClId1();
            var        result2  = getClId2();
            var        target1  = getClId1.Target;
            var        target2  = getClId2.Target;

            // Assert
            getClId1.ShouldNotBeNull();
            getClId2.ShouldNotBeNull();
            getClId1.ShouldNotBe(getClId2);
            target1.ShouldBe(target2);
            Should.NotThrow(() => getClId1.Invoke());
            Should.NotThrow(() => getClId2.Invoke());
            result1.ShouldBe(result2);
        }
        public void Constructor_licensedetail_5_Objects_Creation_No_Paramters_Test()
        {
            // Arrange
            var firstlicensedetail  = new licensedetail();
            var secondlicensedetail = new licensedetail();
            var thirdlicensedetail  = new licensedetail();
            var fourthlicensedetail = new licensedetail();
            var fifthlicensedetail  = new licensedetail();
            var sixthlicensedetail  = new licensedetail();

            // Act, Assert
            firstlicensedetail.ShouldNotBeNull();
            secondlicensedetail.ShouldNotBeNull();
            thirdlicensedetail.ShouldNotBeNull();
            fourthlicensedetail.ShouldNotBeNull();
            fifthlicensedetail.ShouldNotBeNull();
            sixthlicensedetail.ShouldNotBeNull();
            firstlicensedetail.ShouldNotBeSameAs(secondlicensedetail);
            thirdlicensedetail.ShouldNotBeSameAs(firstlicensedetail);
            fourthlicensedetail.ShouldNotBeSameAs(firstlicensedetail);
            fifthlicensedetail.ShouldNotBeSameAs(firstlicensedetail);
            sixthlicensedetail.ShouldNotBeSameAs(firstlicensedetail);
            sixthlicensedetail.ShouldNotBeSameAs(fourthlicensedetail);
        }