public void Setup() { _getGuitarsByCompany = MockRepository.GenerateMock<IGetGuitarsByCompany>(); _getAllGuitars = MockRepository.GenerateMock<IGetAllGuitars>(); _ctrl = new GuitarController(_getGuitarsByCompany, _getAllGuitars); _ctrl.Request = new HttpRequestMessage(); //_ctrl.Request.Properties.Add(HttpPropertyKeys.HttpConfigurationKey, (object)new HttpConfiguration()); }
public void Setup() { _getGuitarsByCompany = MockRepository.GenerateMock <IGetGuitarsByCompany>(); _getAllGuitars = MockRepository.GenerateMock <IGetAllGuitars>(); _ctrl = new GuitarController(_getGuitarsByCompany, _getAllGuitars); _ctrl.Request = new HttpRequestMessage(); //_ctrl.Request.Properties.Add(HttpPropertyKeys.HttpConfigurationKey, (object)new HttpConfiguration()); }
public GuitarController(IGetGuitarsByCompany getGuitarsByCompany, IGetAllGuitars getAllGuitars) { _getGuitarsByCompany = getGuitarsByCompany; _getAllGuitars = getAllGuitars; }