public void CreateOrUpdateProfileReceiver_FieldsToCollectReturned() { var request = new INTEGRATION.CreateOrUpdateProfileReceiverRequest { AgentState = _agentState }; request.PopulateAgentData(request.AgentState); var data = new CreateOrUpdateProfileReceiverData(request); var response = _consumerOperations.CreateOrUpdateProfileReceiverBaseData(data); Assert.IsFalse(response.Errors.Any(), $" {Environment.NewLine}Errors: {Environment.NewLine}{response.Errors?.Log()}"); var containsCategory = ContainsCategory(response.Payload.FieldsToCollect, InfoKeyCategories.receiverProfileSaveOrUpdateInfoSet); Assert.IsTrue(containsCategory, "Ensure that profile editor limits for create or update profile Receiver are configured properly in the current environment"); }