public void MapResponseToRequest() { var mapper = new ApiTenantVariableModelMapper(); var model = new ApiTenantVariableResponseModel(); model.SetProperties("A", "A", "A", "A", "A", "A", "A"); ApiTenantVariableRequestModel response = mapper.MapResponseToRequest(model); response.EnvironmentId.Should().Be("A"); response.JSON.Should().Be("A"); response.OwnerId.Should().Be("A"); response.RelatedDocumentId.Should().Be("A"); response.TenantId.Should().Be("A"); response.VariableTemplateId.Should().Be("A"); }
public async void TestUpdate() { var model = await this.CreateRecord(); ApiTenantVariableModelMapper mapper = new ApiTenantVariableModelMapper(); UpdateResponse <ApiTenantVariableResponseModel> updateResponse = await this.Client.TenantVariableUpdateAsync(model.Id, mapper.MapResponseToRequest(model)); updateResponse.Record.Should().NotBeNull(); updateResponse.Success.Should().BeTrue(); await this.Cleanup(); }