{"action":"opened","issue":{"url":"https://api.github.com/repos/ivaylokenov/MyTested.WebApi/issues/261","repository_url":"https://api.github.com/repos/ivaylokenov/MyTested.WebApi","labels_url":"https://api.github.com/repos/ivaylokenov/MyTested.WebApi/issues/261/labels{/name}","comments_url":"https://api.github.com/repos/ivaylokenov/MyTested.WebApi/issues/261/comments","events_url":"https://api.github.com/repos/ivaylokenov/MyTested.WebApi/issues/261/events","html_url":"https://github.com/ivaylokenov/MyTested.WebApi/issues/261","id":147409578,"number":261,"title":"NullReferenceException for route tests since upgrading to 1.2.3","user":{"login":"paulduran","id":601548,"avatar_url":"https://avatars.githubusercontent.com/u/601548?v=3","gravatar_id":"","url":"https://api.github.com/users/paulduran","html_url":"https://github.com/paulduran","followers_url":"https://api.github.com/users/paulduran/followers","following_url":"https://api.github.com/users/paulduran/following{/other_user}","gists_url":"https://api.github.com/users/paulduran/gists{/gist_id}","starred_url":"https://api.github.com/users/paulduran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulduran/subscriptions","organizations_url":"https://api.github.com/users/paulduran/orgs","repos_url":"https://api.github.com/users/paulduran/repos","events_url":"https://api.github.com/users/paulduran/events{/privacy}","received_events_url":"https://api.github.com/users/paulduran/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-11T12:20:17Z","updated_at":"2016-04-11T12:20:17Z","closed_at":null,"body":"I updated to 1.2.3 and several unit tests that worked fine in 1.2.2 have now stopped working. \r\n\r\nThe failing tests have two things in common:\r\n\r\n* all specifying .WithHttpMethod() of PUT or POST\r\n* all passing null as the expected parameter value\r\n\r\nFor example\r\n\r\n```\r\n        [Fact]\r\n        public void VerifySingleSignOnAsBusiness()\r\n        {\r\n            MyWebApi.Routes().ShouldMap(\"http://dummyhost.com/api/v2/business/39/singlesignon\").WithHttpMethod(HttpMethod.Post).To<SingleSignOnController>(c=>c.Post(null));\r\n        }\r\n```\r\n\r\nHere is the stack trace:\r\n\r\n```\r\nObject reference not set to an instance of an object.\r\n\r\n   at MyTested.WebApi.Builders.Routes.ShouldMapTestBuilder.<>c__DisplayClass5`1.<ValidateRouteInformation>b__4(KeyValuePair`2 arg)\r\n   at MyTested.WebApi.Common.Extensions.EnumerableExtensions.ForEach[T](IEnumerable`1 collection, Action`1 action)\r\n   at MyTested.WebApi.Builders.Routes.ShouldMapTestBuilder.ResolveTo[TController](LambdaExpression actionCall)\r\n   at MyApp.Tests.WebApiRouteTests.VerifyTerminateEmployeeInPayRun() in C:\\projects\\Basics\\MyApp\\MyApp.Tests\\WebApiRouteTests.cs:line 111\r\n```\r\n\r\nLet me know if there's any other information I can give you.\r\n"}}