/// <summary>
 /// Creates dummy tcp packet
 /// </summary>
 /// <returns>Dummy tcp packett</returns>
 public Packet GetDummyTcpPacket()
 {
     return(new PacketBuilder(_dummyLayerCreator.GetDummyEthernetLayer(),
                              _dummyLayerCreator.GetDummyIpV4Layer(),
                              _dummyLayerCreator.GetDummyTcpLayer(),
                              _dummyLayerCreator.GetDummyPayloadLayer()).Build(DateTime.Now));
 }
        public void ModifyLayerModules_UserInputIsEmpty_LayerPropertiesAreSame()
        {
            // Arrange
            var layer = _dummyLayerCreator.GetDummyTcpLayer();

            var propertyInfo = layer.GetType().GetProperty("DestinationPort");

            _userExperienceMock.Setup(x => x.UserInputHandler.AskUserInputWhileInputContainsPatterns(propertyInfo))
            .Returns("");

            // Act
            var result = _target.ChangeLayerModulesBasedOnUserInput(layer);

            // Assert
            result.DestinationPort.Should().Be(80);
            result.Checksum.Should().Be(11010);
            result.AcknowledgmentNumber.Should().Be(321);
        }