public BudgetTests() { var connectionString = "mongodb://localhost:27017"; var database = "test_budgets"; _testBudgetName = new Guid().ToString(); _budgetRepository = new BudgetRepository(); _budgetRepository.Initialize(connectionString, database); // Initialize Data ClearTestDatabase().Wait(); _budgetRepository.AddBudget(new Budget { Categories = new List <Category>(), Description = _testBudgetName, Name = _testBudgetName, StartDate = DateTime.Now, EndDate = DateTime.Now.AddMonths(1) }).Wait(); GetBudget().Wait(); }