private async Task <ApiDeploymentRelatedMachineResponseModel> CreateRecord()
        {
            var model = new ApiDeploymentRelatedMachineRequestModel();

            model.SetProperties("A", "B");
            CreateResponse <ApiDeploymentRelatedMachineResponseModel> result = await this.Client.DeploymentRelatedMachineCreateAsync(model);

            result.Success.Should().BeTrue();
            return(result.Record);
        }
        public void MapModelToBO()
        {
            var mapper = new BOLDeploymentRelatedMachineMapper();
            ApiDeploymentRelatedMachineRequestModel model = new ApiDeploymentRelatedMachineRequestModel();

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

            response.DeploymentId.Should().Be("A");
            response.MachineId.Should().Be("A");
        }
        public void MapRequestToResponse()
        {
            var mapper = new ApiDeploymentRelatedMachineModelMapper();
            var model  = new ApiDeploymentRelatedMachineRequestModel();

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

            response.DeploymentId.Should().Be("A");
            response.Id.Should().Be(1);
            response.MachineId.Should().Be("A");
        }
        public void CreatePatch()
        {
            var mapper = new ApiDeploymentRelatedMachineModelMapper();
            var model  = new ApiDeploymentRelatedMachineRequestModel();

            model.SetProperties("A", "A");

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

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