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
publicasync Task Register_RegisterIdentity_WhenEmailIsAlreadyUsed(){// Arrangevaridentity= _faker.Generate();await _identityRequest.RegisterAsync(identity);await Task.Delay(100);// Let the transaction being commited ?// Actvarresponse=await _identityRequest.RegisterAsync(identity);// Assert
response.IsSuccessStatusCode.Should().BeFalse();
response.StatusCode.Should().Be(HttpStatusCode.BadRequest);varproblem=await response.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: