Skip to content

Commit

Permalink
Merge pull request #249 from TimeWarpEngineering/Cramer/2020-12-27/Up…
Browse files Browse the repository at this point in the history
…dateVersions

Test doesn't apply anymore.
  • Loading branch information
StevenTCramer authored Dec 27, 2020
2 parents 90e2d61 + ab80de1 commit 49569de
Showing 1 changed file with 0 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ namespace CloneStateBehavior
{
using Shouldly;
using System;
using System.Net.Http;
using System.Threading.Tasks;
using TestApp.Client.Features.Application;
using TestApp.Client.Features.CloneTest;
Expand Down Expand Up @@ -73,25 +72,5 @@ public async Task RollBackStateAndPublish_When_Exception()
CounterState.Guid.Equals(preActionGuid).ShouldBeTrue();
}

public async Task WillNotRollbackState_When_ExceptionOccursInAnEndpointOnServer()
{
// Arrange
// Setup know state.
CounterState.Initialize(aCount: 22);
Guid preActionGuid = CounterState.Guid;

var throwServerSideExceptionAction = new ThrowServerSideExceptionAction
{
Message = "Response status code does not indicate success: 500 (Internal Server Error)."
};

// Act
Exception exception = await Shouldly.Should.ThrowAsync<Exception>(async () =>
await Send(throwServerSideExceptionAction));

// Assert
exception.Message.ShouldBe(throwServerSideExceptionAction.Message);
CounterState.Guid.Equals(preActionGuid).ShouldBeFalse();
}
}
}

0 comments on commit 49569de

Please sign in to comment.