public void MapModelToBO()
        {
            var mapper = new BOLPostHistoryTypesMapper();
            ApiPostHistoryTypesRequestModel model = new ApiPostHistoryTypesRequestModel();

            model.SetProperties("A");
            BOPostHistoryTypes response = mapper.MapModelToBO(1, model);

            response.Type.Should().Be("A");
        }
        private async Task <ApiPostHistoryTypesResponseModel> CreateRecord()
        {
            var model = new ApiPostHistoryTypesRequestModel();

            model.SetProperties("B");
            CreateResponse <ApiPostHistoryTypesResponseModel> result = await this.Client.PostHistoryTypesCreateAsync(model);

            result.Success.Should().BeTrue();
            return(result.Record);
        }
        public void MapRequestToResponse()
        {
            var mapper = new ApiPostHistoryTypesModelMapper();
            var model  = new ApiPostHistoryTypesRequestModel();

            model.SetProperties("A");
            ApiPostHistoryTypesResponseModel response = mapper.MapRequestToResponse(1, model);

            response.Id.Should().Be(1);
            response.Type.Should().Be("A");
        }
        public void CreatePatch()
        {
            var mapper = new ApiPostHistoryTypesModelMapper();
            var model  = new ApiPostHistoryTypesRequestModel();

            model.SetProperties("A");

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

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