public async Task CloneStateUsingOverridenClone() { //Arrange CloneTestState.Initialize(aCount: 15); Guid preActionGuid = CloneTestState.Guid; var cloneTestAction = new CloneTestAction { }; //Act await Send(cloneTestAction); //Assert CloneTestState.Guid.ShouldNotBe(preActionGuid); CloneTestState.Count.ShouldBe(42); }
public async Task ShouldCloneStateUsingOverridenClone() { //Arrange CloneTestState.Initialize(aCount: 15); Guid preActionGuid = CloneTestState.Guid; // Create request var cloneTestAction = new CloneTestAction { }; //Act // Send Request _ = await Mediator.Send(cloneTestAction); //Assert CloneTestState.Guid.ShouldNotBe(preActionGuid); CloneTestState.Count.ShouldBe(42); }