Ejemplo n.º 1
0
        public void TestDuplicateParameters(DashboardHelpers.Parameters parameter, DashboardHelpers.Values value)
        {
            var handler                = new DashboardManager(DashboardHelpers.DashboardRegistrationEndPoint);
            var parametersSameValue    = DashboardHelpers.DashboardRegistrationSameValueParameters(parameter, UserIds);
            var parametersNotSameValue = DashboardHelpers.DashboardRegistrationNotSameValueParameters(parameter, UserIds);
            var response               = handler.SendDashboard <object>(value == DashboardHelpers.Values.Same ? parametersSameValue : parametersNotSameValue, System.Net.Http.HttpMethod.Put);

            PrAssert.That(response, PrIs.ErrorResponse().And.HttpCode(System.Net.HttpStatusCode.BadRequest));
        }