private void ViewOnFilterApplied(object sender, ErrorLogSearchEventArgs e)
		{
			View.ClearErrorDetails();

			var result = _repository.GetWithFilter(e.Query);

			View.DisplaySearchResult(result);
		}
		public void Ctor_SetsQuery()
		{
			// arrange
			var query = new SearchErrorLogQuery();

			// act
			var args = new ErrorLogSearchEventArgs(query);

			// assert
			Assert.That(args.Query, Is.EqualTo(query));
		}
        public void OnFilterApplied_ShouldDisplaySearchResult()
        {
            // arrange
            var presenter = BuildPresenter();
            var filter = new SearchErrorLogQuery();
            var args = new ErrorLogSearchEventArgs(filter);
            var searchResult = new List<ErrorLog>();

            _repository.Setup(x => x.GetWithFilter(filter)).Returns(searchResult);

            // act
            _view.Raise(x => x.OnFilterApplied += null, args);

            // assert
            _view.Verify(x => x.DisplaySearchResult(searchResult), Times.Once());
        }
		private void SearchFilterViewOnSearchFilterApplied(object sender, ErrorLogSearchEventArgs e)
		{
			if (OnFilterApplied != null)
			{
				OnFilterApplied(this, e);
			}
		}