public FreshOrganizationFixture( SpAuthApi api, FreshCustomerFixture customer ) { InviteStatusLink = customer.SignedCustomer._links.inviteStatus.href; var organization = new SpAuthApi.OrganizationCreateModel( customer.SignedCustomer ); var response = api.CreateOrganization( organization ); Assert.Equal( HttpStatusCode.Accepted, response.StatusCode ); }
public static void ShouldYieldAccepted( [Frozen] SpAuthApi api, FreshCustomerFixture customer ) { var organization = new SpAuthApi.OrganizationCreateModel( customer.SignedCustomer ); var response = api.CreateOrganization( organization ); Assert.Equal( HttpStatusCode.Accepted, response.StatusCode ); }