public async Task <LockTransactionModel> GetTestData()
        {
            var model = GetNewData();
            await _service.CreateAsync(model);

            return(await _service.ReadByIdAsync(model.Id));
        }
Beispiel #2
0
 public async Task Should_Success_Create_Data()
 {
     var service = new LockTransactionService(GetServiceProvider().Object, _dbContext(GetCurrentMethod()));
     var model = _dataUtil(service).GetNewData();
     var Response = await service.CreateAsync(model);
     Assert.NotEqual(0, Response);
 }