public void Arrange() { base.Arrange( addEpaoClaim: true, addUkprnClaim: false, contactsPrivileges: new List <ContactsPrivilege> { // the contact has the explict 'Change Organisation Details' privilege ChangeOrganisationDetailsContactsPrivilege }); ContactsApiClient.Setup(c => c.GetAllContactsForOrganisation(EpaoId, null)) .ReturnsAsync(new List <ContactResponse>()); ContactsApiClient.Setup(c => c.GetByUsername(ValidPrimaryContact)) .ReturnsAsync(new ContactResponse { Id = Guid.NewGuid(), OrganisationId = OrganisationOneId, Username = ValidPrimaryContact }); ContactsApiClient.Setup(c => c.GetByUsername(ValidPrimaryContactSameOrganisation)) .ReturnsAsync(new ContactResponse { Id = ValidPrimaryContactIdSameOrganisation, OrganisationId = OrganisationOneId, Username = ValidPrimaryContactSameOrganisation }); OrganisationApiClient.Setup(c => c.UpdateEpaOrganisationPrimaryContact(It.IsAny <UpdateEpaOrganisationPrimaryContactRequest>())) .ReturnsAsync(new List <ContactResponse>()); }
public void Arrange() { base.Arrange( addEpaoClaim: true, addUkprnClaim: false, contactsPrivileges: null); OrganisationApiClient.Setup(c => c.UpdateEpaOrganisationPhoneNumber(It.IsAny <UpdateEpaOrganisationPhoneNumberRequest>())) .ReturnsAsync(new List <ContactResponse>()); }