public async Task PostCV_CheckData()
        {
            CVCreationRequestModel cv = GetCVCreationRequestModelExtended();
            // Arrange
            var request = new
            {
                Url  = "api/CV",
                Body = cv
            };
            // Act
            var response = await _client.PostAsync(request.Url, ContentHelper.GetStringContent(request.Body));

            var responseBody = await response.Content.ReadAsStringAsync();

            // Assert
            var            actual   = JsonConvert.DeserializeObject <CVServiceModel>(responseBody);
            CVServiceModel expected = GetCVCreatedModelExtended();

            Assert.Equal <CVServiceModel>(expected, actual, new CVServiceModelEqualityComparer());
        }
        public async Task PostCV_InCorrectEmail_BadRequest()
        {
            // Arrange
            CVCreationRequestModel cv = GetCorrectCVCreationRequestModel();

            cv.User.Email = "aaaaaamail.ru";
            var request = new
            {
                Url  = "api/CV",
                Body = cv
            };
            // Act
            var response = await _client.PostAsync(request.Url, ContentHelper.GetStringContent(request.Body));

            var value = await response.Content.ReadAsStringAsync();

            // Assert
            Assert.Equal(HttpStatusCode.BadRequest, response.StatusCode);
            Assert.Contains("Email is required", value);
        }
        public async Task PostCV_EmailIsNull_PhoneIsNull_BadRequest()
        {
            // Arrange
            CVCreationRequestModel cv = GetCorrectCVCreationRequestModel();

            cv.User.Email = null;
            cv.User.Phone = null;
            var request = new
            {
                Url  = "api/CV",
                Body = cv
            };
            // Act
            var response = await _client.PostAsync(request.Url, ContentHelper.GetStringContent(request.Body));

            var value = await response.Content.ReadAsStringAsync();

            // Assert
            Assert.Equal(HttpStatusCode.BadRequest, response.StatusCode);
        }