There is no argument given that corresponds to the required formal parameter 'customerRepository' of 'CustomersController.CustomersController(ICustomerRepository)' FabrikamFiber.Web.Tests
Opened this issue · 0 comments
kelumKP commented
There is error in CustomersControllerTest.cs
file which is located at Controllers
folder FabrikamFiber.Web.Tests
project .
this is the code snippet that popping the error
[TestMethod]
public void Testar_Foo()
{
CustomersController controller = new CustomersController();
controller.Foo();
}
its mentioning
Error 1
There is no argument given that corresponds to the required formal parameter 'customerRepository' of 'CustomersController.CustomersController(ICustomerRepository)'
Error 2
'CustomersController' does not contain a definition for 'Foo' and no extension method 'Foo' accepting a first argument of type 'CustomersController' could be found