public void MapResponseToRequest()
        {
            var mapper = new ApiCountryRegionCurrencyModelMapper();
            var model  = new ApiCountryRegionCurrencyResponseModel();

            model.SetProperties("A", "A", DateTime.Parse("1/1/1987 12:00:00 AM"));
            ApiCountryRegionCurrencyRequestModel response = mapper.MapResponseToRequest(model);

            response.CurrencyCode.Should().Be("A");
            response.ModifiedDate.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM"));
        }
        public async void TestUpdate()
        {
            var model = await this.CreateRecord();

            ApiCountryRegionCurrencyModelMapper mapper = new ApiCountryRegionCurrencyModelMapper();

            UpdateResponse <ApiCountryRegionCurrencyResponseModel> updateResponse = await this.Client.CountryRegionCurrencyUpdateAsync(model.CountryRegionCode, mapper.MapResponseToRequest(model));

            updateResponse.Record.Should().NotBeNull();
            updateResponse.Success.Should().BeTrue();

            await this.Cleanup();
        }
        public void CreatePatch()
        {
            var mapper = new ApiCountryRegionCurrencyModelMapper();
            var model  = new ApiCountryRegionCurrencyRequestModel();

            model.SetProperties("A", DateTime.Parse("1/1/1987 12:00:00 AM"));

            JsonPatchDocument <ApiCountryRegionCurrencyRequestModel> patch = mapper.CreatePatch(model);
            var response = new ApiCountryRegionCurrencyRequestModel();

            patch.ApplyTo(response);
            response.CurrencyCode.Should().Be("A");
            response.ModifiedDate.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM"));
        }