Пример #1
0
        public void TestAccountStateProperties()
        {
            RepositoryBag repositoryBag = new RepositoryBag();
            long          id            = 3;
            long          accountId     = 8;
            Money         funds         = 123.45;
            DateTime      timestamp     = DateTime.Now;
            bool          isClosed      = false;

            AccountState state      = new AccountState(id, accountId, funds, timestamp, isClosed, repositoryBag);
            var          properties = state.GetProperties().ToList();

            Assert.Equal(5, properties.Count);

            Assert.Contains(AccountState.PROP_ACCOUNT, properties);
            Assert.Contains(AccountState.PROP_FUNDS, properties);
            Assert.Contains(AccountState.PROP_ID, properties);
            Assert.Contains(AccountState.PROP_STATUS, properties);
            Assert.Contains(AccountState.PROP_TIMESTAMP, properties);
        }