IDirectory ITenantActionsSync.CreateDirectory(IDirectory directory, Action<DirectoryCreationOptionsBuilder> creationOptionsAction)
        {
            var builder = new DirectoryCreationOptionsBuilder();
            creationOptionsAction(builder);
            var options = builder.Build();

            return this.CreateDirectory(directory, options);
        }
        Task<IDirectory> ITenantActions.CreateDirectoryAsync(IDirectory directory, Action<DirectoryCreationOptionsBuilder> creationOptionsAction, CancellationToken cancellationToken)
        {
            var builder = new DirectoryCreationOptionsBuilder();
            creationOptionsAction(builder);
            var options = builder.Build();

            return this.AsInterface.CreateDirectoryAsync(directory, options, cancellationToken);
        }
            public async Task Create_with_all_options()
            {
                var optionsBuilder = new DirectoryCreationOptionsBuilder();
                optionsBuilder.ResponseOptions.Expand(x => x.GetGroups(0, 10));
                var options = optionsBuilder.Build();

                await this.VerifyThat(options, resultsInQueryString: "?expand=groups(offset:0,limit:10)");
            }
            public async Task Create_with_response_options()
            {
                var optionsBuilder = new DirectoryCreationOptionsBuilder();
                optionsBuilder.ResponseOptions.Expand(x => x.GetCustomData());
                var options = optionsBuilder.Build();

                await this.VerifyThat(options, resultsInQueryString: "?expand=customData");
            }