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

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