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