public void Check_Default_Frequency()
        {
            //Arrange
            var item = Moq.Mock.Of <IPlcItem>();

            Moq.Mock.Get(item).SetupGet(plcItem => plcItem.Identifier).Returns(Guid.NewGuid().ToString);
            var configurations = new PlcItemMonitorConfigurations();

            // Act
            var frequency = configurations.GetPollingFrequencyForPlcItem(item);

            // Assert
            Assert.AreEqual(PlcItemMonitorConfigurations.DefaultPollingFrequency, frequency);
        }
        public void Check_Custom_Frequency()
        {
            //Arrange
            var itemIdentifier = Guid.NewGuid().ToString();
            var itemFrequency  = TimeSpan.FromMilliseconds(100);
            var item           = Moq.Mock.Of <IPlcItem>();

            Moq.Mock.Get(item).SetupGet(plcItem => plcItem.Identifier).Returns(itemIdentifier);
            var configurations = new PlcItemMonitorConfigurations(new[] { new PlcItemMonitorConfiguration(itemIdentifier, (uint)itemFrequency.TotalMilliseconds), });

            // Act
            var frequency = configurations.GetPollingFrequencyForPlcItem(item);

            // Assert
            Assert.AreEqual(itemFrequency, frequency);
        }