public async Task WhenAdminUserIsNull_ThrowsNullRefException() { var service = new TestableUserService(); await ContractAssert.ThrowsArgNullAsync( async() => await service.RequestTransformToOrganizationAccount(accountToTransform: new User("account"), adminUser: null), "adminUser"); }
public async Task ThrowsArgumentExceptionForNullUser() { var service = new TestableUserService(); await ContractAssert.ThrowsArgNullAsync(async() => await service.ChangeEmailSubscriptionAsync(null, emailAllowed: true, notifyPackagePushed: true), "user"); }