Exemple #1
0
        private void CheckHandeledEvent(Int32 index, DHCPv6Packet requestPacket, DHCPv6Packet result, DHCPv6RootScope rootScope, Guid?scopeId, DHCPv6RebindHandledEvent.RebindErrors error)
        {
            IEnumerable <DomainEvent> changes = rootScope.GetChanges();

            Assert.IsAssignableFrom <DHCPv6RebindHandledEvent>(changes.ElementAt(index));

            DHCPv6RebindHandledEvent handeledEvent = (DHCPv6RebindHandledEvent)changes.ElementAt(index);

            Assert.Equal(requestPacket, handeledEvent.Request);
            Assert.Equal(result, handeledEvent.Response);
            Assert.Equal(scopeId, handeledEvent.ScopeId);
            Assert.Equal(error == DHCPv6RebindHandledEvent.RebindErrors.NoError, handeledEvent.WasSuccessfullHandled);
            Assert.Equal(error, handeledEvent.Error);
        }
Exemple #2
0
 public DHCPv6PacketHandledEntry(DHCPv6RebindHandledEvent entry) : this(entry, DHCPv6PacketTypes.REBIND)
 {
 }