private void CheckHandeledEvent(Int32 index, DHCPv6Packet requestPacket, DHCPv6Packet result, DHCPv6RootScope rootScope, Guid?scopeId, DHCPv6RenewHandledEvent.RenewErrors error) { IEnumerable <DomainEvent> changes = rootScope.GetChanges(); Assert.IsAssignableFrom <DHCPv6RenewHandledEvent>(changes.ElementAt(index)); DHCPv6RenewHandledEvent handeledEvent = (DHCPv6RenewHandledEvent)changes.ElementAt(index); Assert.Equal(requestPacket, handeledEvent.Request); Assert.Equal(result, handeledEvent.Response); Assert.Equal(scopeId, handeledEvent.ScopeId); Assert.Equal(error == DHCPv6RenewHandledEvent.RenewErrors.NoError, handeledEvent.WasSuccessfullHandled); Assert.Equal(error, handeledEvent.Error); }
public DHCPv6PacketHandledEntry(DHCPv6RenewHandledEvent entry) : this(entry, DHCPv6PacketTypes.RENEW) { }