public void Add_NoExistingValues_AddsElementToTheRepository(TestType value, long timestamp)
        {
            _lwwSetService.DownstreamAssign(value, timestamp);

            var repositoryValues = _repository.GetAdds();

            Assert.Contains(value, repositoryValues.Select(v => v.Value));
        }
Ejemplo n.º 2
0
        public void Add_NoExistingValues_AddsElementToTheRepository(LWW_SetElement <TestType> element)
        {
            _lwwSetService.Merge(new HashSet <LWW_SetElement <TestType> > {
                element
            }.ToImmutableHashSet(), ImmutableHashSet <LWW_SetElement <TestType> > .Empty);

            var repositoryValues = _repository.GetAdds();

            Assert.Contains(element, repositoryValues);
        }