public void MapResponseToRequest() { var mapper = new ApiDashboardConfigurationModelMapper(); var model = new ApiDashboardConfigurationResponseModel(); model.SetProperties("A", "A", "A", "A", "A", "A"); ApiDashboardConfigurationRequestModel response = mapper.MapResponseToRequest(model); response.IncludedEnvironmentIds.Should().Be("A"); response.IncludedProjectIds.Should().Be("A"); response.IncludedTenantIds.Should().Be("A"); response.IncludedTenantTags.Should().Be("A"); response.JSON.Should().Be("A"); }
public async void TestUpdate() { var model = await this.CreateRecord(); ApiDashboardConfigurationModelMapper mapper = new ApiDashboardConfigurationModelMapper(); UpdateResponse <ApiDashboardConfigurationResponseModel> updateResponse = await this.Client.DashboardConfigurationUpdateAsync(model.Id, mapper.MapResponseToRequest(model)); updateResponse.Record.Should().NotBeNull(); updateResponse.Success.Should().BeTrue(); await this.Cleanup(); }