public void GivenEmptyAccountId_InputNotCreated_ThrowsInputValidationException() { EmptyAccountIdException actualEx = Assert.Throws <EmptyAccountIdException>( () => new GetAccountInput(Guid.Empty)); Assert.Contains("accountId", actualEx.Message, StringComparison.OrdinalIgnoreCase); }
public void GivenEmptyOriginAccountId_InputNotCreated_ThrowsInputValidationException() { EmptyAccountIdException actualEx = Assert.Throws <EmptyAccountIdException>( () => new TransferInput( new AccountId(Guid.Empty), new AccountId(Guid.NewGuid()), new PositiveMoney(10))); Assert.Contains("accountId", actualEx.Message, StringComparison.OrdinalIgnoreCase); }