Im am writing an application when after pressing button in window LoginWindow Loger chcecks via database if passed credentials are ok. If it returns something (not null) i want to check if loger.validateuser() raises an LoginSucces event. How to test it?

```
namespace Komora.Classes.Loger
{
public abstract class Loger
{

    public delegate void LoginStatus(object sender, EventArgs e);
    public event LoginStatus loginSucces;
    public event LoginStatus loginFailed;

    public abstract void validateUser(string login, string password) ;

    protected void RaiseLoginSuccesEvent(EventArgs eventArgs)
    {
        if (loginSucces != null)
        {
            loginSucces(this, eventArgs);
        }
    }

    protected void RaiseLoginFailedEvent(EventArgs eventArgs)
    {
        if (loginFailed != null)
        {
            loginFailed(this, eventArgs);
        }
    }
}
}

namespace Komora.Classes.Loger
{
public class LogerDataBase : Loger
{
    #region Private Variables
    DataBase.IDataBaseConncection dataBaseConnection;
    #endregion

    #region Constructor
    public LogerDataBase(DataBase.IDataBaseConncection dataBaseConnection)
    {
        this.dataBaseConnection = dataBaseConnection;
    }
    #endregion

    #region Derived Methods
    public override void validateUser(string login, string password)
    {
        if (LogInSuccess(login, password))
        {
            RaiseLoginSuccesEvent(EventArgs.Empty);
        }
        else
        {
            RaiseLoginFailedEvent(EventArgs.Empty);
        }
    }
    #endregion

    #region Private Methods
    private bool LogInSuccess(string login, string password)
    {
        if (null != dataBaseConnection.getUserByCredentials(login, password))
            return true;
        else
            return false;
    }
    #endregion

}
}

public class LogerDataBaseTests
{
    [TestCase]
    public void ValidateUserCalledWithGoodUserCredentialsRaisesLoginSuccesEventShouldPass()
    {
        var dataBaseConnectionMock = new Mock<Classes.DataBase.IDataBaseConncection>();
        dataBaseConnectionMock.Setup(m => m.getUserByCredentials(It.IsAny<string>(), It.IsAny<string>())).Returns(new object());

        var loger = new Classes.Loger.LogerDataBase(dataBaseConnectionMock.Object);
        loger.validateUser("user", "pass");

    }
}

```