Beispiel #1
0
        public void BadRequestTest()
        {
            var currentActivity = new Activity("CurrentActivity").Start();

            try
            {
                var configuration = CreateProblemDetailsConfiguration();

                var expected = CreateExpectedProblemDetailsWithNotifications(configuration);

                var problemDetailsFactory = new ProblemDetailsFactory(configuration);

                var actual = problemDetailsFactory.BadRequest(expected.Notifications);
                AssertProblemDetailsWithNotifications(expected, actual);
            }
            finally
            {
                currentActivity.Stop();
            }
        }