public async Task When_Pass_No_Password_To_Add_ResourceOwner_Then_Error_Is_Returned() { var result = await _resourceOwnerClient .AddResourceOwner(new AddResourceOwnerRequest { Subject = "subject" }, "token") .ConfigureAwait(false) as Option <AddResourceOwnerResponse> .Error; Assert.Equal(ErrorCodes.UnhandledExceptionCode, result.Details.Title); }