CQRSlite.Tests.Domain.When_saving_stale_data.Should_throw_concurrency_exception_from_session C# (CSharp) Метод

Should_throw_concurrency_exception_from_session() приватный Метод

private Should_throw_concurrency_exception_from_session ( ) : void
Результат void
        public void Should_throw_concurrency_exception_from_session()
        {
            _session.Add(_aggregate);
            _aggregate.DoSomething();
            _rep.Save(_aggregate);
            Assert.Throws<ConcurrencyException>(() => _session.Commit());
        }