public async void AddAsync() { var model = new GetModelService().GetModel(); await _client.AddAsync(model); var result = _client.GetQueryable <TestModel>().FirstOrDefault(p => p.Id == model.Id); Assert.NotNull(result); Assert.Equal(model.ToJson(), result.ToJson()); }
public void UpdateSuccess() { var model = new GetModelService().GetModel(); _client.Add(model); model.Int = 199; model.String = Guid.NewGuid().ToString(); model.DateTimeUtc = DateTime.UtcNow; _client.Update(model); var result = _client.GetQueryable <TestModel>().FirstOrDefault(p => p.Id == model.Id); Assert.Equal(model.ToJson(), result.ToJson()); }