public void IsValidEntry_WithInValidTicker_ReturnsFalse()
    {
        // ARRANGE
        var target        = new EntryValidator();
        var selectedEntry = MakeEntry("");
        // ACT
        bool actual = target.IsValidEntry(selectedEntry, selectedEntry.Ticker);

        // ASSERT
        Assert.IsFalse(actual);
    }
    public void IsValidEntry_WithValidValues_ReturnsTrue()
    {
        // ARRANGE
        var target        = new EntryValidator();
        var selectedEntry = MakeEntry("BOL");
        // ACT
        bool actual = target.IsValidEntry(selectedEntry, selectedEntry.Ticker);

        // ASSERT
        Assert.IsTrue(actual);
    }
    public void RaiseInvalidEntryEvent_WithValidHandler_CallsDelegate()
    {
        // ARRANGE
        var  target         = new EntryValidator();
        var  selectedEntry  = MakeEntry("");
        bool delegateCalled = false;

        // attach a handler to set delegateCalled to true
        target.OnInvalidEntry += delegate
        {
            delegateCalled = true;
        };

        // ACT
        target.IsValidEntry(selectedEntry, selectedEntry.Ticker);
        // ASSERT
        Assert.IsTrue(delegateCalled);
    }