public void SetCommandHandlerExecuteThrowsForNullSetCommand() { var setCommandHandler = new TestableSetCommandHandler(this.notificationService, this.configurationMap); Func<Task> action = async () => await setCommandHandler.Execute(null); action.ShouldThrow<ArgumentNullException>().And.ParamName.Should().Be("command"); }
public SetCommandTests() { this.notificationService = new TestableNotificationService(); this.configurationMap = new NameValueCollection { { "var1", "value1" }, { "var2", "value2" } }; this.testableSetCommandHandler = new TestableSetCommandHandler(this.notificationService, this.configurationMap); }