public EnterCombatCommandResolutionHandler(ICombatStatisticsFactory combatStatisticsFactory)
            : base(EnterCombatCommandResolutionHandler.MatchingEventName)
        {
            Guard.WhenArgument(combatStatisticsFactory, nameof(ICombatStatisticsFactory)).IsNull().Throw();

            this.combatStatisticsFactory = combatStatisticsFactory;
        }
示例#2
0
        public void ThrowArgumentNullException_WhenICombatStatisticsFactoryParametersIsNull()
        {
            // Arrange
            ICombatStatisticsFactory combatStatisticsFactory = null;

            // Act & Assert
            Assert.That(
                () => new EnterCombatCommandResolutionHandler(combatStatisticsFactory),
                Throws.InstanceOf <ArgumentNullException>().With.Message.Contains(nameof(ICombatStatisticsFactory)));
        }
 internal MockEnterCombatCommandResolutionHandler(ICombatStatisticsFactory combatStatisticsFactory)
     : base(combatStatisticsFactory)
 {
 }