コード例 #1
0
        public void WhenUserStoreMoneyToTheAccount_ThenItShouldAddUp()
        {
            var account = new Account(_guid, 5000, _userId);

            account.Store(200);
            account.Check().Should().Be(5200);
        }
コード例 #2
0
        public void WhenUserSendMoneyToAnotherUser_ThenUserMoneyWouldBeDeducted()
        {
            var account = new Account(_guid, 5000, _userId);

            account.Send(200);
            account.Check().Should().Be(4800);
        }
コード例 #3
0
        public void WhenUserCheckTheAccount_ThenItShouldReturnCorrectData()
        {
            var account = new Account(_guid, 5000, _userId);

            account.Check().Should().Be(5000);
        }