예제 #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);
        }