public void ThrowsArgumentExceptionForNullUser() { var service = new TestableUserService(); ContractAssert.ThrowsArgNull(() => service.UpdateProfile(null, "*****@*****.**", emailAllowed: true), "user"); }
public void ThrowsArgumentExceptionForNullUser() { var service = new TestableUserService(); ContractAssert.ThrowsArgNull(() => service.ChangeEmailSubscription(null, emailAllowed: true), "user"); }
public async Task ThrowsArgumentExceptionForNullUser() { var service = new TestableUserService(); await ContractAssert.ThrowsArgNullAsync(async() => await service.ChangeEmailSubscriptionAsync(null, emailAllowed: true), "user"); }