초기커밋
This commit is contained in:
29
BrokerApiTest/DocQuery/UserTestInsertAction.cs
Normal file
29
BrokerApiTest/DocQuery/UserTestInsertAction.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using ServerCommon;
|
||||
|
||||
using ServerCore; using ServerBase;
|
||||
|
||||
public class UserTestInsertAction : EntityActionBase
|
||||
{
|
||||
public UserTestInsertAction(EntityBase owner) : base(owner)
|
||||
{
|
||||
}
|
||||
|
||||
public override async Task<Result> onInit()
|
||||
{
|
||||
var result = new Result();
|
||||
return await Task.FromResult(result);
|
||||
}
|
||||
|
||||
public override void onClear()
|
||||
{
|
||||
}
|
||||
|
||||
// 실제 할 일을 정의한다.
|
||||
public async Task<(Result, UserTestDoc)> tryInsertUser(string userId, string name, DynamoDbClient dynamoDbClient)
|
||||
{
|
||||
ArgumentNullReferenceCheckHelper.throwIfNull(dynamoDbClient, () => $"dynamoDbClient is null !!! - {getOwner().toBasicString()}");
|
||||
var doc = new UserTestDoc(userId, name);
|
||||
var result = await doc.insertUser(dynamoDbClient);
|
||||
return (result, doc);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user