コード例 #1
0
        public void Update_SameValueExistsWithLowerTimestamp_DoesNotDoAnything(TestType value, long timestamp)
        {
            _repository.PersistElement(new LWW_RegisterElement <TestType>(value, timestamp - 100, false));

            _service.DownstreamAssign(value.Id, JToken.Parse(JsonConvert.SerializeObject(value)), timestamp);

            AssertExistsInRepository(value, timestamp - 100);
        }
コード例 #2
0
        public void Assign_SameValueExistsWithHigherTimestamp_DoesNotDoAnything(TestType value, long timestamp)
        {
            _repository.PersistElement(new LWW_RegisterElement <TestType>(value, timestamp, false));

            _service.DownstreamAssign(value, timestamp - 100);

            AssertExistsInRepository(value, timestamp);
        }