public async Task WhenPassingNullParameterThenExceptionIsThrown() { // ARRANGE InitializeFakeObjects(); // ACTS & ASSERTS await Assert.ThrowsAsync <ArgumentNullException>(() => _getProfileAction.Execute(null)); await Assert.ThrowsAsync <ArgumentNullException>(() => _getProfileAction.Execute(string.Empty)); }
public Task <IEnumerable <ResourceOwnerProfile> > GetProfiles(string subject) { return(_getUserProfilesAction.Execute(subject)); }