public async Task inserting_same_value_in_different_scope_doesnt_throw() { await Insert(); Func <Task> act = async() => { await _sut.AddAsync(new UniqueStoreItem(Guid.NewGuid(), Guid.NewGuid(), new UniqueValue("test", scope: OtherAspect) ), CancellationToken.None); }; act.ShouldNotThrow <UniqueStoreDuplicateException>(); }
public async Task delete_from_store() { await Insert(); await _sut.DeleteAsync(_entityId, CancellationToken.None); Func <Task> act = async() => { await _sut.AddAsync(new UniqueStoreItem(_entityId, Guid.NewGuid() , new UniqueValue("test", scope: Scope) , new UniqueValue("test-p", OtherAspect, scope: Scope) ), CancellationToken.None); }; act.ShouldNotThrow <UniqueStoreDuplicateException>(); }