public void UpdateUserAccountAsyncShouldNotWorkWithWrongData()
        {
            var testAccountRepository = GetTestAcctRepository().GetAwaiter().GetResult();

            var testAccountManagementService = new AccountManagementService(this.userManager.Object, this.userRepository.Object, testAccountRepository, this.positionService.Object, this.feePaymentsRepository.Object);

            Assert.ThrowsAsync <NullReferenceException>(async() =>
                                                        await testAccountManagementService.UpdateUserAccountAsync("-1", 10000M, 80M, 80M));
        }
        public async Task UpdateUserAccountAsyncShouldWorkCorrectly()
        {
            var testAccountRepository = await GetTestAcctRepository();

            var testAccountManagementService = new AccountManagementService(this.userManager.Object, this.userRepository.Object, testAccountRepository, this.positionService.Object, this.feePaymentsRepository.Object);

            await testAccountManagementService.UpdateUserAccountAsync("1", 10000M, 80M, 80M);

            var account = testAccountRepository
                          .AllWithDeleted()
                          .FirstOrDefault(a => a.Id == 1);

            Assert.AreEqual(80M, account.TradeFee);
            Assert.AreEqual(80M, account.MonthlyFee);
            Assert.AreEqual(10000M, account.Balance);
        }