protected override void ServicesConfiguration(IServiceCollection services) { _fakeQuery = A.Fake <IQueryNutrients>(); services.AddSingleton(_fakeQuery); _fakeCommands = A.Fake <ICommandNutrients>(); services.AddSingleton(_fakeCommands); }
public NutrientsController(IQueryNutrients queries, ICommandNutrients commands, IMapper mapper) { _queries = queries; _commands = commands; _mapper = mapper; }