よく使われるメソッド
よく使われるメソッド
よく使われるメソッド
よく使われるメソッド
public static void EnsureCreatedSuccessfully(this AccountEntity entity) { if (entity == null || string.IsNullOrEmpty(entity.Id) == true) { throw Errors.AccountCreationError(); } }