You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey @amantinband !
First of all, thank you for this amazing template 👍
I have a question on the EventualConsistencyMiddleware during integration testing.
Due to the transaction being commit after the request has return ok200, when testing for duplication how do you handle that ?
Do you add a delay in the test like below ? Or do you do something else ?
Thank you again !
Take care
publicasyncTaskRegister_RegisterIdentity_WhenEmailIsAlreadyUsed(){// Arrangevaridentity=_faker.Generate();await_identityRequest.RegisterAsync(identity);awaitTask.Delay(100);// Let the transaction being commited ?// Actvarresponse=await_identityRequest.RegisterAsync(identity);// Assertresponse.IsSuccessStatusCode.Should().BeFalse();response.StatusCode.Should().Be(HttpStatusCode.BadRequest);varproblem=awaitresponse.Error!.GetContentAsAsync<ProblemDetails>();problem!.Detail.Should().Be(IdentityError.EmailAlreadyUsed(identity.Email).Description);}
The text was updated successfully, but these errors were encountered:
Hey @amantinband !
First of all, thank you for this amazing template 👍
I have a question on the EventualConsistencyMiddleware during integration testing.
Due to the transaction being commit after the request has return ok200, when testing for duplication how do you handle that ?
Do you add a delay in the test like below ? Or do you do something else ?
Thank you again !
Take care
The text was updated successfully, but these errors were encountered: