ZocMonLib.Recorder.RecordEvent C# (CSharp) Method

RecordEvent() public method

Record the ocurrance of a given monitor configuration.
public RecordEvent ( string configName, MonitorReductionType monitorReductionType ) : void
configName string Name of the config
monitorReductionType MonitorReductionType Reduction type that is being used
return void
        public void RecordEvent(string configName, MonitorReductionType monitorReductionType)
        {
            Record(configName, DateTime.Now, 1.0, monitorReductionType);
        }

Same methods

Recorder::RecordEvent ( string configName ) : void

Usage Example

Example #1
0
            public void WhenResolutionIsZeroShouldAddToUpdateList()
            {
                var monitorInfo = BuildDefaultMonitorInfo(0);
                var recordMocks = BuildRecordMocks(monitorInfo);

                var recorder = new Recorder(recordMocks.Cache.Object, recordMocks.Settings.Object);
                recorder.RecordEvent("Test");

                Assert.Equal(monitorInfo.MonitorRecords.Count, 1);
            }