public async Task When_Passing_NullOr_Empty_Parameter_Then_Exception_Is_Thrown() { // ARRANGE InitializeFakeObjects(); // ACTS & ASSERTS await Assert.ThrowsAsync <ArgumentNullException>(() => _deleteSettingAction.Execute(null)); await Assert.ThrowsAsync <ArgumentNullException>(() => _deleteSettingAction.Execute(string.Empty)); }
public Task <bool> DeleteSetting(string key) { return(_deleteSettingAction.Execute(key)); }