Example #1
0
        override public void Execute()
        {
            ExpiryTimeConfiguration expiryTimeConfiguration = ExpiryTimeConfigurationBuilder.NewExpiryTimeConfiguration()
                                                              .WithMaximumRemainingDays(60)
                                                              .WithRemainingDays(60)
                                                              .Build();

            OssClient.DataRetentionSettingsService.SetExpiryTimeConfiguration(expiryTimeConfiguration);
            expiryTimeConfigurationAfterUpdate = OssClient.DataRetentionSettingsService.GetExpiryTimeConfiguration();
        }
Example #2
0
        public void BuildTest()
        {
            ExpiryTimeConfigurationBuilder builder = ExpiryTimeConfigurationBuilder.NewExpiryTimeConfiguration()
                                                     .WithMaximumRemainingDays(90)
                                                     .WithRemainingDays(80);

            ExpiryTimeConfiguration result = builder.Build();

            Assert.IsNotNull(result);
            Assert.AreEqual(result.MaximumRemainingDays, 90);
            Assert.AreEqual(result.RemainingDays, 80);
        }