public void DeleteAccount() { const string accountName = "Test Account"; var userService = new UserService(); var service = new MoneyService(); var userId = userService.Register("testUser" + Guid.NewGuid(), "testPassword"); service.CreateAccount(userId, accountName, 1); var accounts = service.GetAllAccounts(userId); service.DeleteAccount(userId, accounts[0].Id); accounts = service.GetAllAccounts(userId); Assert.Equal(0, accounts.Count); }