I have the following code with gives the correct assert result but the test case errors with the message "Object synchronization method was called from an unsynchronized block of code." What can I do to correct the issue?
public async Task Test()
{
using (new FakeHttpContext.FakeHttpContext())
{
BasketController _controller = new BasketController();
List<StockMovementModel> model = new List<StockMovementModel>
{
StockMovementFixtures.TestFixture()
};
var result = await _controller.CreateTransfer(model, new Kendo.Mvc.UI.DataSourceRequest()).ConfigureAwait(false);
Assert.IsNotNull(result);
}
}