private EmailDefinition CreateEmailDefinitionObject()
        {
            var emailDefinitionKey  = $"{Guid.NewGuid()}";
            var emailDefinitionName = $"{Guid.NewGuid()}";

            var emailAsset = CreateAssetObject();

            try
            {
                var createAssetResult = assetApiClient.CreateAsset(emailAsset);
                var customerKey       = createAssetResult.CustomerKey;

                var content = new EmailDefinitionContent(customerKey);

                const string subscribersListKey = "All Subscribers";
                var          subscriptions      = new EmailDefinitionSubscriptions(subscribersListKey);
                var          emailDefinition    = new EmailDefinition(emailDefinitionName, emailDefinitionKey, content: content, subscriptions: subscriptions);

                return(emailDefinition);
            }
            catch (ApiException e)
            {
                Console.WriteLine(e);
                throw;
            }
        }
        public static EmailDefinition CreateEmailDefinitionObject(AssetApi assetApi)
        {
            /* Replace '<SUBSCRIBERS LIST KEY>' with the key of
             * one of your subscribers lists or use 'All Subscribers'*/
            const string subscribersListKey = "<SUBSCRIBERS LIST KEY>";

            var emailAsset          = CreateEmailAsset();
            var createAssetResult   = assetApi.CreateAsset(emailAsset);
            var customerKey         = createAssetResult.CustomerKey;
            var emailDefinitionName = $"{Guid.NewGuid()}";
            var emailDefinitionKey  = $"{Guid.NewGuid()}";
            var content             = new EmailDefinitionContent(customerKey);
            var subscriptions       = new EmailDefinitionSubscriptions(subscribersListKey);

            return(new EmailDefinition(emailDefinitionName, emailDefinitionKey, content: content, subscriptions: subscriptions));
        }