moq raise event code example Example: moq raise event this.mockView.Raise(mock => mock.MyEvent += null, new EventArgs());