protected override void ServicesConfiguration(IServiceCollection services) { _fakeQuery = A.Fake <IQueryPlants>(); services.AddSingleton(_fakeQuery); _fakeCommand = A.Fake <ICommandPlants>(); services.AddSingleton(_fakeCommand); }
public PlantsController(IQueryPlants queries, ICommandPlants commands, IMapper mapper) { _queries = queries; _commands = commands; _mapper = mapper; }