ZocMonLib.Recorder.RecordEvent C# (CSharp) Method

RecordEvent() public method

Record the ocurrance of a given monitor configuration.
public RecordEvent ( string configName ) : void
configName string Name of the config
return void
        public void RecordEvent(string configName)
        {
            RecordEvent(configName, MonitorReductionType.DefaultAccumulate);
        }

Same methods

Recorder::RecordEvent ( string configName, MonitorReductionType monitorReductionType ) : 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);
            }