public static void ExpectSuccess(StudyCreateDto createRequest, ApiResponseWrapper <StudyDetailsDto> responseWrapper)
        {
            ApiResponseBasicAsserts.ExpectSuccess <StudyDetailsDto>(responseWrapper);

            Assert.NotEqual <int>(0, responseWrapper.Content.Id);
            Assert.Equal(createRequest.Name, responseWrapper.Content.Name);
            Assert.Equal(createRequest.Vendor, responseWrapper.Content.Vendor);
            Assert.Equal(createRequest.WbsCode, responseWrapper.Content.WbsCode);
        }
 public static void ExpectValidationFailure(ApiResponseWrapper <Common.Dto.ErrorResponse> responseWrapper, string message)
 {
     ApiResponseBasicAsserts.ExpectFailureWithMessage(responseWrapper, HttpStatusCode.BadRequest, message);
 }
 public static void ExpectFailureWithMessage(ApiResponseWrapper <Common.Dto.ErrorResponse> responseWrapper, HttpStatusCode statusCode, string messageShouldContain = null)
 {
     ApiResponseBasicAsserts.ExpectFailureWithMessage(responseWrapper, statusCode, messageShouldContain);
 }
 public static void ExpectSuccess(ApiResponseWrapper <NoContentResult> responseWrapper)
 {
     ApiResponseBasicAsserts.ExpectSuccess(responseWrapper);
 }
Beispiel #5
0
        public static void ExpectSuccess(ApiResponseWrapper <StudyDetailsDto> responseWrapper)
        {
            ApiResponseBasicAsserts.ExpectSuccess <StudyDetailsDto>(responseWrapper);

            Assert.NotEqual <int>(0, responseWrapper.Content.Id);
        }