コード例 #1
0
ファイル: Invite.cs プロジェクト: InishTech/Sp.Api
			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 );
			}
コード例 #2
0
		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 );
		}