예제 #1
0
 private void WhenUpdate(object stateId, TestState state)
 {
     state.Test = "abc";
     container.UpdateAsync(TableName, stateId, state).GetAwaiter().GetResult();
 }
예제 #2
0
 private void ThenSuccess(TestState state)
 {
     Assert.Null(deleteState);
     Assert.NotNull(selectState);
     selectState.Valid(state);
 }
예제 #3
0
 private void WhenInsert(object stateId, TestState state)
 {
     container.InsertAsync(TableName, stateId, state).GetAwaiter().GetResult();
 }
예제 #4
0
        private void Givent_PlayerEvent(TestState state, long v)
        {
            var e = TestEvent.Create(v);

            state.Player(e);
        }
예제 #5
0
 private void ThenModifySuccess(TestState state)
 {
     Assert.Null(exception);
     Assert.NotNull(ReadState);
     ReadState.Valid(state);
 }
예제 #6
0
 private void When_Read(int stateId)
 {
     ReadState = storage.ReadAsync <TestState>(stateId).GetAwaiter().GetResult();
 }
예제 #7
0
 private void When_Update(TestState state)
 {
     IsSuccess = storage.UpdateAsync(state.StateId, state).GetAwaiter().GetResult();
 }