dlidstrom / Snittlistan

MIT License
1 stars 1 forks source link

tenant ioc #570

Closed dlidstrom closed 2 years ago

github-actions[bot] commented 2 years ago



Command Line

packages\nunit.consolerunner\3.12.0\tools\nunit3-console.exe  D:\a\Snittlistan\Snittlistan\Build\_build\SnittlistanTest\Snittlistan.Test.dll

Runtime Environment

OS Version: Microsoft Windows NT 10.0.20348.0
CLR Version: 4.0.30319.42000
 
NUnit Version: 3.12.0.0

Test Files

  1. D:\a\Snittlistan\Snittlistan\Build\_build\SnittlistanTest\Snittlistan.Test.dll

Errors and Failures

  1. Failed : Snittlistan.Test.ApiControllers.Task_Post_RegisterMatch.ShouldRegisterPendingResult
    Multiple failures or warnings in test: 1) System.NullReferenceException: Object reference not set to an instance of an object. at async Task<IHttpActionResult> Snittlistan.Web.Areas.V2.Controllers.Api.TaskController.Post(TaskRequest request) in D:/a/Snittlistan/Snittlistan/Snittlistan.Web/Areas/V2/Controllers/Api/TaskController.cs:line 61 at async Task<object> System.Threading.Tasks.TaskHelpersExtensions.CastToObject<T>(Task<T> task) at async Task<HttpResponseMessage> System.Web.Http.Controllers.ApiControllerActionInvoker.InvokeActionAsyncCore(HttpActionContext actionContext, CancellationToken cancellationToken) at async Task<HttpResponseMessage> System.Web.Http.Filters.ActionFilterAttribute.CallOnActionExecutedAsync(HttpActionContext actionContext, CancellationToken cancellationToken, Func<Task<HttpResponseMessage>> continuation) x 2 at async Task<HttpResponseMessage> System.Web.Http.Filters.ActionFilterAttribute.ExecuteActionFilterAsyncCore(HttpActionContext actionContext, CancellationToken cancellationToken, Func<Task<HttpResponseMessage>> continuation) at async Task<HttpResponseMessage> System.Web.Http.Filters.ActionFilterAttribute.CallOnActionExecutedAsync(HttpActionContext actionContext, CancellationToken cancellationToken, Func<Task<HttpResponseMessage>> continuation) x 2 at async Task<HttpResponseMessage> System.Web.Http.Filters.ActionFilterAttribute.ExecuteActionFilterAsyncCore(HttpActionContext actionContext, CancellationToken cancellationToken, Func<Task<HttpResponseMessage>> continuation) at async Task<HttpResponseMessage> System.Web.Http.Filters.ActionFilterAttribute.CallOnActionExecutedAsync(HttpActionContext actionContext, CancellationToken cancellationToken, Func<Task<HttpResponseMessage>> continuation) x 2 at async Task<HttpResponseMessage> System.Web.Http.Filters.ActionFilterAttribute.ExecuteActionFilterAsyncCore(HttpActionContext actionContext, CancellationToken cancellationToken, Func<Task<HttpResponseMessage>> continuation) at async Task<HttpResponseMessage> System.Web.Http.Controllers.ActionFilterResult.ExecuteAsync(CancellationToken cancellationToken) at async Task<HttpResponseMessage> System.Web.Http.Controllers.ExceptionFilterResult.ExecuteAsync(CancellationToken cancellationToken) 2) NUnit.Framework.AssertionException: System.NullReferenceException: Object reference not set to an instance of an object. at async Task<IHttpActionResult> Snittlistan.Web.Areas.V2.Controllers.Api.TaskController.Post(TaskRequest request) in D:/a/Snittlistan/Snittlistan/Snittlistan.Web/Areas/V2/Controllers/Api/TaskController.cs:line 61 at async Task<object> System.Threading.Tasks.TaskHelpersExtensions.CastToObject<T>(Task<T> task) at async Task<HttpResponseMessage> System.Web.Http.Controllers.ApiControllerActionInvoker.InvokeActionAsyncCore(HttpActionContext actionContext, CancellationToken cancellationToken) at async Task<HttpResponseMessage> System.Web.Http.Filters.ActionFilterAttribute.CallOnActionExecutedAsync(HttpActionContext actionContext, CancellationToken cancellationToken, Func<Task<HttpResponseMessage>> continuation) x 2 at async Task<HttpResponseMessage> System.Web.Http.Filters.ActionFilterAttribute.ExecuteActionFilterAsyncCore(HttpActionContext actionContext, CancellationToken cancellationToken, Func<Task<HttpResponseMessage>> continuation) at async Task<HttpResponseMessage> System.Web.Http.Filters.ActionFilterAttribute.CallOnActionExecutedAsync(HttpActionContext actionContext, CancellationToken cancellationToken, Func<Task<HttpResponseMessage>> continuation) x 2 at async Task<HttpResponseMessage> System.Web.Http.Filters.ActionFilterAttribute.ExecuteActionFilterAsyncCore(HttpActionContext actionContext, CancellationToken cancellationToken, Func<Task<HttpResponseMessage>> continuation) at async Task<HttpResponseMessage> System.Web.Http.Filters.ActionFilterAttribute.CallOnActionExecutedAsync(HttpActionContext actionContext, CancellationToken cancellationToken, Func<Task<HttpResponseMessage>> continuation) x 2 at async Task<HttpResponseMessage> System.Web.Http.Filters.ActionFilterAttribute.ExecuteActionFilterAsyncCore(HttpActionContext actionContext, CancellationToken cancellationToken, Func<Task<HttpResponseMessage>> continuation) at async Task<HttpResponseMessage> System.Web.Http.Controllers.ActionFilterResult.ExecuteAsync(CancellationToken cancellationToken) at async Task<HttpResponseMessage> System.Web.Http.Controllers.ExceptionFilterResult.ExecuteAsync(CancellationToken cancellationToken) at void NUnit.Framework.Assert.ReportFailure(string message) at void NUnit.Framework.Assert.Fail(string message, params object[] args) x 2 at void Snittlistan.Test.ApiControllers.WebApiIntegrationTest.ExceptionHandler(object sender, Exception exception) in D:/a/Snittlistan/Snittlistan/Snittlistan.Test/ApiControllers/WebApiIntegrationTest.cs:line 112 at void System.EventHandler<TEventArgs>.Invoke(object sender, TEventArgs e) at Task Snittlistan.Web.Infrastructure.LoggingExceptionLogger.LogAsync(ExceptionLoggerContext context, CancellationToken cancellationToken) in D:/a/Snittlistan/Snittlistan/Snittlistan.Web/Infrastructure/LoggingExceptionLogger.cs:line 17 at Task System.Web.Http.ExceptionHandling.CompositeExceptionLogger.LogAsync(ExceptionLoggerContext context, CancellationToken cancellationToken) at Task System.Web.Http.ExceptionHandling.ExceptionLoggerExtensions.LogAsync(IExceptionLogger logger, ExceptionContext context, CancellationToken cancellationToken) at async Task<HttpResponseMessage> System.Web.Http.Controllers.ExceptionFilterResult.ExecuteAsync(CancellationToken cancellationToken) at async Task<HttpResponseMessage> System.Web.Http.Dispatcher.HttpControllerDispatcher.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) 3) NUnit.Framework.AssertionException: Multiple failures or warnings in test: 1) System.NullReferenceException: Object reference not set to an instance of an object. at async Task<IHttpActionResult> Snittlistan.Web.Areas.V2.Controllers.Api.TaskController.Post(TaskRequest request) in D:/a/Snittlistan/Snittlistan/Snittlistan.Web/Areas/V2/Controllers/Api/TaskController.cs:line 61 at async Task<object> System.Threading.Tasks.TaskHelpersExtensions.CastToObject<T>(Task<T> task) at async Task<HttpResponseMessage> System.Web.Http.Controllers.ApiControllerActionInvoker.InvokeActionAsyncCore(HttpActionContext actionContext, CancellationToken cancellationToken) at async Task<HttpResponseMessage> System.Web.Http.Filters.ActionFilterAttribute.CallOnActionExecutedAsync(HttpActionContext actionContext, CancellationToken cancellationToken, Func<Task<HttpResponseMessage>> continuation) x 2 at async Task<HttpResponseMessage> System.Web.Http.Filters.ActionFilterAttribute.ExecuteActionFilterAsyncCore(HttpActionContext actionContext, CancellationToken cancellationToken, Func<Task<HttpResponseMessage>> continuation) at async Task<HttpResponseMessage> System.Web.Http.Filters.ActionFilterAttribute.CallOnActionExecutedAsync(HttpActionContext actionContext, CancellationToken cancellationToken, Func<Task<HttpResponseMessage>> continuation) x 2 at async Task<HttpResponseMessage> System.Web.Http.Filters.ActionFilterAttribute.ExecuteActionFilterAsyncCore(HttpActionContext actionContext, CancellationToken cancellationToken, Func<Task<HttpResponseMessage>> continuation) at async Task<HttpResponseMessage> System.Web.Http.Filters.ActionFilterAttribute.CallOnActionExecutedAsync(HttpActionContext actionContext, CancellationToken cancellationToken, Func<Task<HttpResponseMessage>> continuation) x 2 at async Task<HttpResponseMessage> System.Web.Http.Filters.ActionFilterAttribute.ExecuteActionFilterAsyncCore(HttpActionContext actionContext, CancellationToken cancellationToken, Func<Task<HttpResponseMessage>> continuation) at async Task<HttpResponseMessage> System.Web.Http.Controllers.ActionFilterResult.ExecuteAsync(CancellationToken cancellationToken) at async Task<HttpResponseMessage> System.Web.Http.Controllers.ExceptionFilterResult.ExecuteAsync(CancellationToken cancellationToken) 2) NUnit.Framework.AssertionException: System.NullReferenceException: Object reference not set to an instance of an object. at async Task<IHttpActionResult> Snittlistan.Web.Areas.V2.Controllers.Api.TaskController.Post(TaskRequest request) in D:/a/Snittlistan/Snittlistan/Snittlistan.Web/Areas/V2/Controllers/Api/TaskController.cs:line 61 at async Task<object> System.Threading.Tasks.TaskHelpersExtensions.CastToObject<T>(Task<T> task) at async Task<HttpResponseMessage> System.Web.Http.Controllers.ApiControllerActionInvoker.InvokeActionAsyncCore(HttpActionContext actionContext, CancellationToken cancellationToken) at async Task<HttpResponseMessage> System.Web.Http.Filters.ActionFilterAttribute.CallOnActionExecutedAsync(HttpActionContext actionContext, CancellationToken cancellationToken, Func<Task<HttpResponseMessage>> continuation) x 2 at async Task<HttpResponseMessage> System.Web.Http.Filters.ActionFilterAttribute.ExecuteActionFilterAsyncCore(HttpActionContext actionContext, CancellationToken cancellationToken, Func<Task<HttpResponseMessage>> continuation) at async Task<HttpResponseMessage> System.Web.Http.Filters.ActionFilterAttribute.CallOnActionExecutedAsync(HttpActionContext actionContext, CancellationToken cancellationToken, Func<Task<HttpResponseMessage>> continuation) x 2 at async Task<HttpResponseMessage> System.Web.Http.Filters.ActionFilterAttribute.ExecuteActionFilterAsyncCore(HttpActionContext actionContext, CancellationToken cancellationToken, Func<Task<HttpResponseMessage>> continuation) at async Task<HttpResponseMessage> System.Web.Http.Filters.ActionFilterAttribute.CallOnActionExecutedAsync(HttpActionContext actionContext, CancellationToken cancellationToken, Func<Task<HttpResponseMessage>> continuation) x 2 at async Task<HttpResponseMessage> System.Web.Http.Filters.ActionFilterAttribute.ExecuteActionFilterAsyncCore(HttpActionContext actionContext, CancellationToken cancellationToken, Func<Task<HttpResponseMessage>> continuation) at async Task<HttpResponseMessage> System.Web.Http.Controllers.ActionFilterResult.ExecuteAsync(CancellationToken cancellationToken) at async Task<HttpResponseMessage> System.Web.Http.Controllers.ExceptionFilterResult.ExecuteAsync(CancellationToken cancellationToken) at void NUnit.Framework.Assert.ReportFailure(string message) at void NUnit.Framework.Assert.Fail(string message, params object[] args) x 2 at void Snittlistan.Test.ApiControllers.WebApiIntegrationTest.ExceptionHandler(object sender, Exception exception) in D:/a/Snittlistan/Snittlistan/Snittlistan.Test/ApiControllers/WebApiIntegrationTest.cs:line 112 at void System.EventHandler<TEventArgs>.Invoke(object sender, TEventArgs e) at Task Snittlistan.Web.Infrastructure.LoggingExceptionLogger.LogAsync(ExceptionLoggerContext context, CancellationToken cancellationToken) in D:/a/Snittlistan/Snittlistan/Snittlistan.Web/Infrastructure/LoggingExceptionLogger.cs:line 17 at Task System.Web.Http.ExceptionHandling.CompositeExceptionLogger.LogAsync(ExceptionLoggerContext context, CancellationToken cancellationToken) at Task System.Web.Http.ExceptionHandling.ExceptionLoggerExtensions.LogAsync(IExceptionLogger logger, ExceptionContext context, CancellationToken cancellationToken) at async Task<HttpResponseMessage> System.Web.Http.Controllers.ExceptionFilterResult.ExecuteAsync(CancellationToken cancellationToken) at async Task<HttpResponseMessage> System.Web.Http.Dispatcher.HttpControllerDispatcher.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) at void NUnit.Framework.Assert.ReportFailure(string message) at void NUnit.Framework.Assert.Fail(string message, params object[] args) x 2 at void Snittlistan.Test.ApiControllers.WebApiIntegrationTest.ExceptionHandler(object sender, Exception exception) in D:/a/Snittlistan/Snittlistan/Snittlistan.Test/ApiControllers/WebApiIntegrationTest.cs:line 112 at void System.EventHandler<TEventArgs>.Invoke(object sender, TEventArgs e) at Task Snittlistan.Web.Infrastructure.LoggingExceptionLogger.LogAsync(ExceptionLoggerContext context, CancellationToken cancellationToken) in D:/a/Snittlistan/Snittlistan/Snittlistan.Web/Infrastructure/LoggingExceptionLogger.cs:line 17 at Task System.Web.Http.ExceptionHandling.CompositeExceptionLogger.LogAsync(ExceptionLoggerContext context, CancellationToken cancellationToken) at Task System.Web.Http.ExceptionHandling.ExceptionLoggerExtensions.LogAsync(IExceptionLogger logger, ExceptionContext context, CancellationToken cancellationToken) at async Task<HttpResponseMessage> System.Web.Http.Dispatcher.HttpControllerDispatcher.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) at async Task<HttpResponseMessage> Snittlistan.Web.WebApiConfig+CanceledTaskMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) in D:/a/Snittlistan/Snittlistan/Snittlistan.Web/App_Start/WebApiConfig.cs:line 39 at async Task<HttpResponseMessage> System.Web.Http.HttpServer.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
    at Snittlistan.Test.ApiControllers.WebApiIntegrationTest.ExceptionHandler(Object sender, Exception exception) in D:\a\Snittlistan\Snittlistan\Snittlistan.Test\ApiControllers\WebApiIntegrationTest.cs:line 112 at System.EventHandler`1.Invoke(Object sender, TEventArgs e) at Snittlistan.Web.Infrastructure.LoggingExceptionLogger.LogAsync(ExceptionLoggerContext context, CancellationToken cancellationToken) in D:\a\Snittlistan\Snittlistan\Snittlistan.Web\Infrastructure\LoggingExceptionLogger.cs:line 17 at System.Web.Http.ExceptionHandling.CompositeExceptionLogger.LogAsync(ExceptionLoggerContext context, CancellationToken cancellationToken) at System.Web.Http.ExceptionHandling.ExceptionLoggerExtensions.LogAsync(IExceptionLogger logger, ExceptionContext context, CancellationToken cancellationToken) at System.Web.Http.HttpServer.<SendAsync>d__24.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() at Snittlistan.Test.ApiControllers.Task_Post_RegisterMatch.<Act>d__6.MoveNext() in D:\a\Snittlistan\Snittlistan\Snittlistan.Test\ApiControllers\Task_Post_RegisterMatch.cs:line 49 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.GetResult() at Snittlistan.Test.ApiControllers.WebApiIntegrationTest.<SetUp>d__16.MoveNext() in D:\a\Snittlistan\Snittlistan\Snittlistan.Test\ApiControllers\WebApiIntegrationTest.cs:line 78 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.GetResult() at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke) at NUnit.Framework.Internal.Commands.SetUpTearDownItem.RunSetUpOrTearDownMethod(TestExecutionContext context, IMethodInfo method) at NUnit.Framework.Internal.Commands.SetUpTearDownItem.RunSetUp(TestExecutionContext context) at NUnit.Framework.Internal.Commands.SetUpTearDownCommand.<>c__DisplayClass0_0.<.ctor>b__0(TestExecutionContext context) at NUnit.Framework.Internal.Commands.BeforeAndAfterTestCommand.<>c__DisplayClass1_0.<Execute>b__0() at NUnit.Framework.Internal.Commands.BeforeAndAfterTestCommand.RunTestMethodInThreadAbortSafeZone(TestExecutionContext context, Action action)
  2. Failed : Snittlistan.Test.ApiControllers.Task_Post_RegisterMatch.ShouldStoreMatchResult
    Multiple failures or warnings in test: 1) System.NullReferenceException: Object reference not set to an instance of an object. at async Task<IHttpActionResult> Snittlistan.Web.Areas.V2.Controllers.Api.TaskController.Post(TaskRequest request) in D:/a/Snittlistan/Snittlistan/Snittlistan.Web/Areas/V2/Controllers/Api/TaskController.cs:line 61 at async Task<object> System.Threading.Tasks.TaskHelpersExtensions.CastToObject<T>(Task<T> task) at async Task<HttpResponseMessage> System.Web.Http.Controllers.ApiControllerActionInvoker.InvokeActionAsyncCore(HttpActionContext actionContext, CancellationToken cancellationToken) at async Task<HttpResponseMessage> System.Web.Http.Filters.ActionFilterAttribute.CallOnActionExecutedAsync(HttpActionContext actionContext, CancellationToken cancellationToken, Func<Task<HttpResponseMessage>> continuation) x 2 at async Task<HttpResponseMessage> System.Web.Http.Filters.ActionFilterAttribute.ExecuteActionFilterAsyncCore(HttpActionContext actionContext, CancellationToken cancellationToken, Func<Task<HttpResponseMessage>> continuation) at async Task<HttpResponseMessage> System.Web.Http.Filters.ActionFilterAttribute.CallOnActionExecutedAsync(HttpActionContext actionContext, CancellationToken cancellationToken, Func<Task<HttpResponseMessage>> continuation) x 2 at async Task<HttpResponseMessage> System.Web.Http.Filters.ActionFilterAttribute.ExecuteActionFilterAsyncCore(HttpActionContext actionContext, CancellationToken cancellationToken, Func<Task<HttpResponseMessage>> continuation) at async Task<HttpResponseMessage> System.Web.Http.Filters.ActionFilterAttribute.CallOnActionExecutedAsync(HttpActionContext actionContext, CancellationToken cancellationToken, Func<Task<HttpResponseMessage>> continuation) x 2 at async Task<HttpResponseMessage> System.Web.Http.Filters.ActionFilterAttribute.ExecuteActionFilterAsyncCore(HttpActionContext actionContext, CancellationToken cancellationToken, Func<Task<HttpResponseMessage>> continuation) at async Task<HttpResponseMessage> System.Web.Http.Controllers.ActionFilterResult.ExecuteAsync(CancellationToken cancellationToken) at async Task<HttpResponseMessage> System.Web.Http.Controllers.ExceptionFilterResult.ExecuteAsync(CancellationToken cancellationToken) 2) NUnit.Framework.AssertionException: System.NullReferenceException: Object reference not set to an instance of an object. at async Task<IHttpActionResult> Snittlistan.Web.Areas.V2.Controllers.Api.TaskController.Post(TaskRequest request) in D:/a/Snittlistan/Snittlistan/Snittlistan.Web/Areas/V2/Controllers/Api/TaskController.cs:line 61 at async Task<object> System.Threading.Tasks.TaskHelpersExtensions.CastToObject<T>(Task<T> task) at async Task<HttpResponseMessage> System.Web.Http.Controllers.ApiControllerActionInvoker.InvokeActionAsyncCore(HttpActionContext actionContext, CancellationToken cancellationToken) at async Task<HttpResponseMessage> System.Web.Http.Filters.ActionFilterAttribute.CallOnActionExecutedAsync(HttpActionContext actionContext, CancellationToken cancellationToken, Func<Task<HttpResponseMessage>> continuation) x 2 at async Task<HttpResponseMessage> System.Web.Http.Filters.ActionFilterAttribute.ExecuteActionFilterAsyncCore(HttpActionContext actionContext, CancellationToken cancellationToken, Func<Task<HttpResponseMessage>> continuation) at async Task<HttpResponseMessage> System.Web.Http.Filters.ActionFilterAttribute.CallOnActionExecutedAsync(HttpActionContext actionContext, CancellationToken cancellationToken, Func<Task<HttpResponseMessage>> continuation) x 2 at async Task<HttpResponseMessage> System.Web.Http.Filters.ActionFilterAttribute.ExecuteActionFilterAsyncCore(HttpActionContext actionContext, CancellationToken cancellationToken, Func<Task<HttpResponseMessage>> continuation) at async Task<HttpResponseMessage> System.Web.Http.Filters.ActionFilterAttribute.CallOnActionExecutedAsync(HttpActionContext actionContext, CancellationToken cancellationToken, Func<Task<HttpResponseMessage>> continuation) x 2 at async Task<HttpResponseMessage> System.Web.Http.Filters.ActionFilterAttribute.ExecuteActionFilterAsyncCore(HttpActionContext actionContext, CancellationToken cancellationToken, Func<Task<HttpResponseMessage>> continuation) at async Task<HttpResponseMessage> System.Web.Http.Controllers.ActionFilterResult.ExecuteAsync(CancellationToken cancellationToken) at async Task<HttpResponseMessage> System.Web.Http.Controllers.ExceptionFilterResult.ExecuteAsync(CancellationToken cancellationToken) at void NUnit.Framework.Assert.ReportFailure(string message) at void NUnit.Framework.Assert.Fail(string message, params object[] args) x 2 at void Snittlistan.Test.ApiControllers.WebApiIntegrationTest.ExceptionHandler(object sender, Exception exception) in D:/a/Snittlistan/Snittlistan/Snittlistan.Test/ApiControllers/WebApiIntegrationTest.cs:line 112 at void System.EventHandler<TEventArgs>.Invoke(object sender, TEventArgs e) at Task Snittlistan.Web.Infrastructure.LoggingExceptionLogger.LogAsync(ExceptionLoggerContext context, CancellationToken cancellationToken) in D:/a/Snittlistan/Snittlistan/Snittlistan.Web/Infrastructure/LoggingExceptionLogger.cs:line 17 at Task System.Web.Http.ExceptionHandling.CompositeExceptionLogger.LogAsync(ExceptionLoggerContext context, CancellationToken cancellationToken) at Task System.Web.Http.ExceptionHandling.ExceptionLoggerExtensions.LogAsync(IExceptionLogger logger, ExceptionContext context, CancellationToken cancellationToken) at async Task<HttpResponseMessage> System.Web.Http.Controllers.ExceptionFilterResult.ExecuteAsync(CancellationToken cancellationToken) at async Task<HttpResponseMessage> System.Web.Http.Dispatcher.HttpControllerDispatcher.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) 3) NUnit.Framework.AssertionException: Multiple failures or warnings in test: 1) System.NullReferenceException: Object reference not set to an instance of an object. at async Task<IHttpActionResult> Snittlistan.Web.Areas.V2.Controllers.Api.TaskController.Post(TaskRequest request) in D:/a/Snittlistan/Snittlistan/Snittlistan.Web/Areas/V2/Controllers/Api/TaskController.cs:line 61 at async Task<object> System.Threading.Tasks.TaskHelpersExtensions.CastToObject<T>(Task<T> task) at async Task<HttpResponseMessage> System.Web.Http.Controllers.ApiControllerActionInvoker.InvokeActionAsyncCore(HttpActionContext actionContext, CancellationToken cancellationToken) at async Task<HttpResponseMessage> System.Web.Http.Filters.ActionFilterAttribute.CallOnActionExecutedAsync(HttpActionContext actionContext, CancellationToken cancellationToken, Func<Task<HttpResponseMessage>> continuation) x 2 at async Task<HttpResponseMessage> System.Web.Http.Filters.ActionFilterAttribute.ExecuteActionFilterAsyncCore(HttpActionContext actionContext, CancellationToken cancellationToken, Func<Task<HttpResponseMessage>> continuation) at async Task<HttpResponseMessage> System.Web.Http.Filters.ActionFilterAttribute.CallOnActionExecutedAsync(HttpActionContext actionContext, CancellationToken cancellationToken, Func<Task<HttpResponseMessage>> continuation) x 2 at async Task<HttpResponseMessage> System.Web.Http.Filters.ActionFilterAttribute.ExecuteActionFilterAsyncCore(HttpActionContext actionContext, CancellationToken cancellationToken, Func<Task<HttpResponseMessage>> continuation) at async Task<HttpResponseMessage> System.Web.Http.Filters.ActionFilterAttribute.CallOnActionExecutedAsync(HttpActionContext actionContext, CancellationToken cancellationToken, Func<Task<HttpResponseMessage>> continuation) x 2 at async Task<HttpResponseMessage> System.Web.Http.Filters.ActionFilterAttribute.ExecuteActionFilterAsyncCore(HttpActionContext actionContext, CancellationToken cancellationToken, Func<Task<HttpResponseMessage>> continuation) at async Task<HttpResponseMessage> System.Web.Http.Controllers.ActionFilterResult.ExecuteAsync(CancellationToken cancellationToken) at async Task<HttpResponseMessage> System.Web.Http.Controllers.ExceptionFilterResult.ExecuteAsync(CancellationToken cancellationToken) 2) NUnit.Framework.AssertionException: System.NullReferenceException: Object reference not set to an instance of an object. at async Task<IHttpActionResult> Snittlistan.Web.Areas.V2.Controllers.Api.TaskController.Post(TaskRequest request) in D:/a/Snittlistan/Snittlistan/Snittlistan.Web/Areas/V2/Controllers/Api/TaskController.cs:line 61 at async Task<object> System.Threading.Tasks.TaskHelpersExtensions.CastToObject<T>(Task<T> task) at async Task<HttpResponseMessage> System.Web.Http.Controllers.ApiControllerActionInvoker.InvokeActionAsyncCore(HttpActionContext actionContext, CancellationToken cancellationToken) at async Task<HttpResponseMessage> System.Web.Http.Filters.ActionFilterAttribute.CallOnActionExecutedAsync(HttpActionContext actionContext, CancellationToken cancellationToken, Func<Task<HttpResponseMessage>> continuation) x 2 at async Task<HttpResponseMessage> System.Web.Http.Filters.ActionFilterAttribute.ExecuteActionFilterAsyncCore(HttpActionContext actionContext, CancellationToken cancellationToken, Func<Task<HttpResponseMessage>> continuation) at async Task<HttpResponseMessage> System.Web.Http.Filters.ActionFilterAttribute.CallOnActionExecutedAsync(HttpActionContext actionContext, CancellationToken cancellationToken, Func<Task<HttpResponseMessage>> continuation) x 2 at async Task<HttpResponseMessage> System.Web.Http.Filters.ActionFilterAttribute.ExecuteActionFilterAsyncCore(HttpActionContext actionContext, CancellationToken cancellationToken, Func<Task<HttpResponseMessage>> continuation) at async Task<HttpResponseMessage> System.Web.Http.Filters.ActionFilterAttribute.CallOnActionExecutedAsync(HttpActionContext actionContext, CancellationToken cancellationToken, Func<Task<HttpResponseMessage>> continuation) x 2 at async Task<HttpResponseMessage> System.Web.Http.Filters.ActionFilterAttribute.ExecuteActionFilterAsyncCore(HttpActionContext actionContext, CancellationToken cancellationToken, Func<Task<HttpResponseMessage>> continuation) at async Task<HttpResponseMessage> System.Web.Http.Controllers.ActionFilterResult.ExecuteAsync(CancellationToken cancellationToken) at async Task<HttpResponseMessage> System.Web.Http.Controllers.ExceptionFilterResult.ExecuteAsync(CancellationToken cancellationToken) at void NUnit.Framework.Assert.ReportFailure(string message) at void NUnit.Framework.Assert.Fail(string message, params object[] args) x 2 at void Snittlistan.Test.ApiControllers.WebApiIntegrationTest.ExceptionHandler(object sender, Exception exception) in D:/a/Snittlistan/Snittlistan/Snittlistan.Test/ApiControllers/WebApiIntegrationTest.cs:line 112 at void System.EventHandler<TEventArgs>.Invoke(object sender, TEventArgs e) at Task Snittlistan.Web.Infrastructure.LoggingExceptionLogger.LogAsync(ExceptionLoggerContext context, CancellationToken cancellationToken) in D:/a/Snittlistan/Snittlistan/Snittlistan.Web/Infrastructure/LoggingExceptionLogger.cs:line 17 at Task System.Web.Http.ExceptionHandling.CompositeExceptionLogger.LogAsync(ExceptionLoggerContext context, CancellationToken cancellationToken) at Task System.Web.Http.ExceptionHandling.ExceptionLoggerExtensions.LogAsync(IExceptionLogger logger, ExceptionContext context, CancellationToken cancellationToken) at async Task<HttpResponseMessage> System.Web.Http.Controllers.ExceptionFilterResult.ExecuteAsync(CancellationToken cancellationToken) at async Task<HttpResponseMessage> System.Web.Http.Dispatcher.HttpControllerDispatcher.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) at void NUnit.Framework.Assert.ReportFailure(string message) at void NUnit.Framework.Assert.Fail(string message, params object[] args) x 2 at void Snittlistan.Test.ApiControllers.WebApiIntegrationTest.ExceptionHandler(object sender, Exception exception) in D:/a/Snittlistan/Snittlistan/Snittlistan.Test/ApiControllers/WebApiIntegrationTest.cs:line 112 at void System.EventHandler<TEventArgs>.Invoke(object sender, TEventArgs e) at Task Snittlistan.Web.Infrastructure.LoggingExceptionLogger.LogAsync(ExceptionLoggerContext context, CancellationToken cancellationToken) in D:/a/Snittlistan/Snittlistan/Snittlistan.Web/Infrastructure/LoggingExceptionLogger.cs:line 17 at Task System.Web.Http.ExceptionHandling.CompositeExceptionLogger.LogAsync(ExceptionLoggerContext context, CancellationToken cancellationToken) at Task System.Web.Http.ExceptionHandling.ExceptionLoggerExtensions.LogAsync(IExceptionLogger logger, ExceptionContext context, CancellationToken cancellationToken) at async Task<HttpResponseMessage> System.Web.Http.Dispatcher.HttpControllerDispatcher.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) at async Task<HttpResponseMessage> Snittlistan.Web.WebApiConfig+CanceledTaskMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) in D:/a/Snittlistan/Snittlistan/Snittlistan.Web/App_Start/WebApiConfig.cs:line 39 at async Task<HttpResponseMessage> System.Web.Http.HttpServer.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
    at Snittlistan.Test.ApiControllers.WebApiIntegrationTest.ExceptionHandler(Object sender, Exception exception) in D:\a\Snittlistan\Snittlistan\Snittlistan.Test\ApiControllers\WebApiIntegrationTest.cs:line 112 at System.EventHandler`1.Invoke(Object sender, TEventArgs e) at Snittlistan.Web.Infrastructure.LoggingExceptionLogger.LogAsync(ExceptionLoggerContext context, CancellationToken cancellationToken) in D:\a\Snittlistan\Snittlistan\Snittlistan.Web\Infrastructure\LoggingExceptionLogger.cs:line 17 at System.Web.Http.ExceptionHandling.CompositeExceptionLogger.LogAsync(ExceptionLoggerContext context, CancellationToken cancellationToken) at System.Web.Http.ExceptionHandling.ExceptionLoggerExtensions.LogAsync(IExceptionLogger logger, ExceptionContext context, CancellationToken cancellationToken) at System.Web.Http.HttpServer.<SendAsync>d__24.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() at Snittlistan.Test.ApiControllers.Task_Post_RegisterMatch.<Act>d__6.MoveNext() in D:\a\Snittlistan\Snittlistan\Snittlistan.Test\ApiControllers\Task_Post_RegisterMatch.cs:line 49 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.GetResult() at Snittlistan.Test.ApiControllers.WebApiIntegrationTest.<SetUp>d__16.MoveNext() in D:\a\Snittlistan\Snittlistan\Snittlistan.Test\ApiControllers\WebApiIntegrationTest.cs:line 78 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.GetResult() at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke) at NUnit.Framework.Internal.Commands.SetUpTearDownItem.RunSetUpOrTearDownMethod(TestExecutionContext context, IMethodInfo method) at NUnit.Framework.Internal.Commands.SetUpTearDownItem.RunSetUp(TestExecutionContext context) at NUnit.Framework.Internal.Commands.SetUpTearDownCommand.<>c__DisplayClass0_0.<.ctor>b__0(TestExecutionContext context) at NUnit.Framework.Internal.Commands.BeforeAndAfterTestCommand.<>c__DisplayClass1_0.<Execute>b__0() at NUnit.Framework.Internal.Commands.BeforeAndAfterTestCommand.RunTestMethodInThreadAbortSafeZone(TestExecutionContext context, Action action)

Run Settings

Test Run Summary

github-actions[bot] commented 2 years ago



Command Line

packages\nunit.consolerunner\3.12.0\tools\nunit3-console.exe  D:\a\Snittlistan\Snittlistan\Build\_build\SnittlistanTest\Snittlistan.Test.dll

Runtime Environment

OS Version: Microsoft Windows NT 10.0.20348.0
CLR Version: 4.0.30319.42000
 
NUnit Version: 3.12.0.0

Test Files

  1. D:\a\Snittlistan\Snittlistan\Build\_build\SnittlistanTest\Snittlistan.Test.dll

Run Settings

Test Run Summary