Exemple #1
0
        public void TestGetDuplicateParametersDefaultSender(SpecialData.Parameters parameter, Values value)
        {
            var handler  = new UserManager();
            var response = handler.Execute <User>(GetDuplicateParameters[value][parameter], string.Empty, System.Net.Http.HttpMethod.Get);

            PrAssert.That(response, PrIs.SuccessfulResponse().And.HttpCode(System.Net.HttpStatusCode.OK));
        }
        public void TestPutDuplicateParameters(SpecialData.Parameters parameter, Values value)
        {
            var handler  = new MergeSettingsManager();
            var response = handler.MergeSettings <MergeSettingsResponse>(value == Values.Same ? PutDuplicateParametersSameValue[parameter] : PutDuplicateParametersNotSameValue[parameter], System.Net.Http.HttpMethod.Put);

            PrAssert.That(response, PrIs.SuccessfulResponse().And.HttpCode(System.Net.HttpStatusCode.NoContent));
        }
Exemple #3
0
        public void TestPutDuplicateParametersDefaultSender(SpecialData.Parameters parameter, Values value)
        {
            var handler  = new UserManager();
            var response = handler.Execute <User>(value == Values.Same ? PutDuplicateParametersSameValue[parameter] : PutDuplicateParametersNotSameValue[parameter], System.Net.Http.HttpMethod.Put);

            PrAssert.That(response, PrIs.SuccessfulResponse().And.HttpCode(System.Net.HttpStatusCode.NoContent));
        }