public async Task Add() { var parent = ParentGenerator.Default; parent = await _parentRepository.AddAsync(parent); Assert.NotNull(parent?.Id); var child = ChildGenerator.Default; child = await _childRepository.AddAsync(child); Assert.NotNull(child?.Id); await _client.RefreshAsync(); child = await _childRepository.GetByIdAsync(child.Id); Assert.NotNull(child?.Id); }
public async Task Add() { var parent = ParentGenerator.Default; parent = await _parentRepository.AddAsync(parent, o => o.ImmediateConsistency()); Assert.NotNull(parent?.Id); var child = ChildGenerator.Default; child = await _childRepository.AddAsync(child, o => o.ImmediateConsistency()); Assert.NotNull(child?.Id); child = await _childRepository.GetByIdAsync(new Id(child.Id, parent.Id)); Assert.NotNull(child?.Id); child = await _childRepository.GetByIdAsync(child.Id); Assert.NotNull(child?.Id); }