Example #1
0
        protected override void ServicesConfiguration(IServiceCollection services)
        {
            _fakeQuery = A.Fake <IQuerySpecies>();
            services.AddSingleton(_fakeQuery);

            _fakeCommand = A.Fake <ICommandSpecies>();
            services.AddSingleton(_fakeCommand);
        }
Example #2
0
 public SpeciesController(IQuerySpecies queries, ICommandSpecies commands, IMapper mapper)
 {
     _queries  = queries;
     _commands = commands;
     _mapper   = mapper;
 }