示例#1
0
        public void queryWithoutSource()
        {
            EventLogQueryFacade actual = queries[0];

            Assert.Equal("Security", actual.path);
            Assert.Equal(PathType.LogName, actual.pathType);
            Assert.Equal("*[System/EventID=4625]", actual.query);
        }
示例#2
0
        public void queryWithSource()
        {
            EventLogQueryFacade actual = queries[1];

            Assert.Equal("Application", actual.path);
            Assert.Equal(PathType.LogName, actual.pathType);
            Assert.Equal("*[System/EventID=0][System/Provider/@Name=\"sshd\"]", actual.query);
        }
示例#3
0
        private EventLogWatcherFacade createEventLogWatcherFacade(EventLogQueryFacade eventQuery)
        {
            queries.Add(eventQuery);
            var watcherFacade = A.Fake <EventLogWatcherFacade>();

            watcherFacades.Add(watcherFacade);
            return(watcherFacade);
        }