public async Task When_Pass_Null_Parameters_Then_Exceptions_Are_Thrown() { // ARRANGE InitializeFakeObjects(); // ACT & ASSERT await Assert.ThrowsAsync <ArgumentNullException>(() => _rejectPendingRequestAction.Execute(null, null)); await Assert.ThrowsAsync <ArgumentNullException>(() => _rejectPendingRequestAction.Execute("subject", null)); }
public Task <bool> Accept(string subject, string id) { return(_acceptPendingRequestAction.Execute(subject, id)); }