Akka.Remote.Tests.EndpointRegistrySpec.EndpointRegistry_should_prune_outdated_Gated_directives_properly C# (CSharp) Method

EndpointRegistry_should_prune_outdated_Gated_directives_properly() private method

        public void EndpointRegistry_should_prune_outdated_Gated_directives_properly()
        {
            var reg = new EndpointRegistry();
            reg.RegisterWritableEndpoint(address1, actorA, null, null);
            reg.RegisterWritableEndpoint(address2, actorB, null, null);
            reg.MarkAsFailed(actorA, Deadline.Now);
            var farIntheFuture = Deadline.Now + TimeSpan.FromSeconds(60);
            reg.MarkAsFailed(actorB, farIntheFuture);
            reg.Prune();

            Assert.Null(reg.WritableEndpointWithPolicyFor(address1));
            Assert.Equal(farIntheFuture, reg.WritableEndpointWithPolicyFor(address2).AsInstanceOf<EndpointManager.Gated>().TimeOfRelease);
        }