Beispiel #1
0
        public void AccessTimestamp_BeforeInitialization_ThrowsException()
        {
            var keeper = new DraftSnapshotKeeper(_repositoryMock.Object);

            Assert.Throws <InvalidOperationException>(() =>
            {
                var _ = keeper.Timestamp;
            });
        }
Beispiel #2
0
        public void GetAccounts_BeforeInitialization_ThrowsException()
        {
            var keeper = new DraftSnapshotKeeper(_repositoryMock.Object);

            Assert.ThrowsAsync <InvalidOperationException>(async() => await keeper.GetAccountsAsync());
        }