public void DeleteCategory() { var userService = new UserService(); var service = new MoneyService(); var userId = userService.Register("testUser" + Guid.NewGuid(), "testPassword"); service.CreateCategory(userId, "Test Category", 1); var categories = service.GetAllCategories(userId); service.DeleteCategory(userId, categories[0].Id); categories = service.GetAllCategories(userId); Assert.Equal(0, categories.Count); }