public void Setup() { // First, set up all the mappings. ServicesInitializer.ConfigureMappings(); // Assign mocked objects to the oyster service. _unitOfWork = new Mock <IOysterUOW>(); _settingsService = new Mock <ISettingsService>(); _utilities = new Mock <IUtilities>(); _oysterService = new OysterService(_unitOfWork.Object, _settingsService.Object, _utilities.Object); }
public OystersController(IOysterService oysterService) => _oysterService = oysterService;