Hello,
We tried applying the fix options.TransactionBehavior = UnitOfWorkTransactionBehavior.Disabled; in WebTestModule.cs of Web.Tests project but still getting following error
Message: Shouldly.ShouldAssertException : response.StatusCode should be HttpStatusCode.OK but was HttpStatusCode.Redirect
Stack Trace:
ShopLogicWebTestBase.GetResponseAsync(String url, HttpStatusCode expectedStatusCode) line 35
ExceptionDispatchInfo.Throw()
TaskAwaiter.ThrowForNonSuccess(Task task)
TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
TaskAwaiter1.GetResult() ShopLogicWebTestBase.GetResponseAsStringAsync(String url, HttpStatusCode expectedStatusCode) line 28 ExceptionDispatchInfo.Throw() TaskAwaiter.ThrowForNonSuccess(Task task) TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) TaskAwaiter
1.GetResult()
Index_Tests.Welcome_Page() line 12
ExceptionDispatchInfo.Throw()
TaskAwaiter.ThrowForNonSuccess(Task task)
TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
--- End of stack trace from previous location ---
ExceptionDispatchInfo.Throw()
TaskAwaiter.ThrowForNonSuccess(Task task)
TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
ExceptionDispatchInfo.Throw()
TaskAwaiter.ThrowForNonSuccess(Task task)
TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)