public void MapResponseToRequest()
        {
            var mapper = new ApiStateModelMapper();
            var model  = new ApiStateResponseModel();

            model.SetProperties(1, "A");
            ApiStateRequestModel response = mapper.MapResponseToRequest(model);

            response.Name.Should().Be("A");
        }
		public async void TestUpdate()
		{
			var model = await this.CreateRecord();

			ApiStateModelMapper mapper = new ApiStateModelMapper();

			UpdateResponse<ApiStateResponseModel> updateResponse = await this.Client.StateUpdateAsync(model.Id, mapper.MapResponseToRequest(model));

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

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

            model.SetProperties("A");

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

            patch.ApplyTo(response);
            response.Name.Should().Be("A");
        }