Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public static void ExpectSuccess(ApiResponseWrapper <NoContentResult> responseWrapper)
 {
     ApiResponseBasicAsserts.ExpectSuccess(responseWrapper);
 }
Ejemplo n.º 3
0
        public static void ExpectSuccess(ApiResponseWrapper <StudyDetailsDto> responseWrapper)
        {
            ApiResponseBasicAsserts.ExpectSuccess <StudyDetailsDto>(responseWrapper);

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