public void MapModelToBO()
        {
            var mapper = new BOLPipelineStepStatusMapper();
            ApiPipelineStepStatusRequestModel model = new ApiPipelineStepStatusRequestModel();

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

            response.Name.Should().Be("A");
        }
        private async Task <ApiPipelineStepStatusResponseModel> CreateRecord()
        {
            var model = new ApiPipelineStepStatusRequestModel();

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

            result.Success.Should().BeTrue();
            return(result.Record);
        }
Exemplo n.º 3
0
        public void MapRequestToResponse()
        {
            var mapper = new ApiPipelineStepStatusModelMapper();
            var model  = new ApiPipelineStepStatusRequestModel();

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

            response.Id.Should().Be(1);
            response.Name.Should().Be("A");
        }
Exemplo n.º 4
0
        public void CreatePatch()
        {
            var mapper = new ApiPipelineStepStatusModelMapper();
            var model  = new ApiPipelineStepStatusRequestModel();

            model.SetProperties("A");

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

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