public void AddBills() { var listOfBudgets = new CoreBudgets(); Mock <IBudgetRepository> mockBudgetRepository = new Mock <IBudgetRepository>(); mockBudgetRepository.Setup(x => x.AddBudgetAsync(listOfBudgets)).Verifiable(); var billController = new BudgetsController(mockBudgetRepository.Object); billController.Should().NotBeNull(); }