public void SetsCorrectTypes(TmEventTypes expected, params TmEventTypes[] types)
            {
                var filter = new WorkerFilter(new WorkerFilterConfig {
                    Types = types.ToList()
                });

                filter.Types.Should().Be(expected);
            }
            public void ReturnsCorrectValueWithTypesFilter(TmEventTypes tmEventType, bool expected)
            {
                var types = new List <TmEventTypes> {
                    TmEventTypes.StatusChange, TmEventTypes.Alarm
                };
                var filter = new WorkerFilter(new WorkerFilterConfig {
                    Types = types
                });
                var tmEvent = TmEventUtil.CreateRandomValidTmEvent(dto => dto.RecType = (short)tmEventType);

                var result = filter.IsEventSuitable(tmEvent);

                result.Should().Be(expected);
            }