Esempio n. 1
0
        public void CanSetCustomMaxBeaconRecordAgeForDynatrace()
        {
            // given
            DynatraceOpenKitBuilder target = new DynatraceOpenKitBuilder(Endpoint, AppID, DeviceID);
            const long maxRecordAge        = 123456L;

            // when
            var obtained = target.WithBeaconCacheMaxRecordAge(maxRecordAge);
            var config   = target.BuildConfiguration().BeaconCacheConfig;

            // then
            Assert.That(obtained, Is.InstanceOf <DynatraceOpenKitBuilder>());
            Assert.That((DynatraceOpenKitBuilder)obtained, Is.SameAs(target));
            Assert.That(config.MaxRecordAge, Is.EqualTo(maxRecordAge));
        }
 /// <summary>
 /// Sets the maximum beacon age of beacon data in cache.
 /// </summary>
 /// <param name="maxBeaconAgeInMilliseconds">The maximum beacon age in milliseconds, or unbounded if negative.</param>
 /// <returns><code>this</code></returns>
 public DynatraceOpenKitBuilderVB WithBeaconCacheMaxRecordAge(long maxBeaconAgeInMilliseconds)
 {
     wrappedBuilder.WithBeaconCacheMaxRecordAge(maxBeaconAgeInMilliseconds);
     return(this);
 }