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); }
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); }
private EventLogWatcherFacade createEventLogWatcherFacade(EventLogQueryFacade eventQuery) { queries.Add(eventQuery); var watcherFacade = A.Fake <EventLogWatcherFacade>(); watcherFacades.Add(watcherFacade); return(watcherFacade); }