コード例 #1
0
        public void MapResponseToRequest()
        {
            var mapper = new ApiTicketStatusModelMapper();
            var model  = new ApiTicketStatusResponseModel();

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

            response.Name.Should().Be("A");
        }
コード例 #2
0
        public async void TestUpdate()
        {
            var model = await this.CreateRecord();

            ApiTicketStatusModelMapper mapper = new ApiTicketStatusModelMapper();

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

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

            await this.Cleanup();
        }