Skip to content

Instantly share code, notes, and snippets.

public class AnimalService : IAnimalService
{
private readonly IDatabase _database;
public AnimalService(IDatabase database)
{
_database = database;
}
public IEnumerable<Animal> GetAllAnimals()
public class EmployeeRecognition : IRecognitionHandler
{
public void Recognize(RecognizeRequest request)
{
if (request.GetType() != typeof(EmployeeRecognizeRequest))
{
throw new HandlerException("No handler available for the given request");
}