Beispiel #1
0
        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");
        }
Beispiel #2
0
 public SetCommandTests()
 {
     this.notificationService = new TestableNotificationService();
     this.configurationMap = new NameValueCollection { { "var1", "value1" }, { "var2", "value2" } };
     this.testableSetCommandHandler = new TestableSetCommandHandler(this.notificationService, this.configurationMap);
 }