public async Task Update_get(DepositDetails details) { await repository.UpdateAsync(details); DepositDetails retrieved = await repository.GetAsync(details.Id); retrieved.Should().BeEquivalentTo(details); }
public async Task Update_get(DepositDetails details) { IDb db = new MemDb(); DepositDetailsRocksRepository repository = new DepositDetailsRocksRepository(db, new DepositDetailsDecoder()); await repository.UpdateAsync(details); DepositDetails retrieved = await repository.GetAsync(details.Id); retrieved.Should().BeEquivalentTo(details); }