This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AnimalService : IAnimalService | |
{ | |
private readonly IDatabase _database; | |
public AnimalService(IDatabase database) | |
{ | |
_database = database; | |
} | |
public IEnumerable<Animal> GetAllAnimals() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class EmployeeRecognition : IRecognitionHandler | |
{ | |
public void Recognize(RecognizeRequest request) | |
{ | |
if (request.GetType() != typeof(EmployeeRecognizeRequest)) | |
{ | |
throw new HandlerException("No handler available for the given request"); | |
} | |