protected void ThenAnExceptionIsThrown() { ThrownException.Should().NotBeNull(); }
protected void ThenAConcurrencyExceptionIsThrown() { ThrownException.Should().BeOfType <ConcurrencyException>(); }
public void ShouldThrownInvalidOperationException() { ThrownException.Should().BeOfType <InvalidOperationException>(); ThrownException.Message.Should().Be($"There is no sorter for {SortBy}"); }
protected void ThenAnInvalidOperationExceptionIsThrownWithMessage(string expectedMessage) { ThrownException.Should().BeOfType <InvalidOperationException>(); ThrownException.Message.Should().Be(expectedMessage); }
private void ThenAnAggregateNotFoundExceptionIsThrown() { ThrownException.Should().BeOfType <AggregateNotFoundException>(); }