public void Add_NoExistingValues_AddsElementToTheRepository(TestType value, long timestamp) { _lwwSetService.DownstreamAssign(value, timestamp); var repositoryValues = _repository.GetElements(); var element = new LWW_OptimizedSetElement <TestType>(value, timestamp, false); Assert.Contains(element, repositoryValues); }
public void Add_NoExistingValues_AddsElementToTheRepository(TestType value, long timestamp) { var element = new LWW_OptimizedSetElement <TestType>(value, timestamp, false); _lwwSetService.Merge(new HashSet <LWW_OptimizedSetElement <TestType> > { element }.ToImmutableHashSet()); var repositoryValues = _repository.GetElements(); Assert.Contains(element, repositoryValues); }