コード例 #1
0
        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));
        }
コード例 #2
0
 public Task <bool> DeleteSetting(string key)
 {
     return(_deleteSettingAction.Execute(key));
 }