コード例 #1
0
ファイル: IntegrationTests.cs プロジェクト: JachuPL/Spice
        protected override void ServicesConfiguration(IServiceCollection services)
        {
            _fakeQuery = A.Fake <IQueryPlants>();
            services.AddSingleton(_fakeQuery);

            _fakeCommand = A.Fake <ICommandPlants>();
            services.AddSingleton(_fakeCommand);
        }
コード例 #2
0
 public PlantsController(IQueryPlants queries, ICommandPlants commands, IMapper mapper)
 {
     _queries  = queries;
     _commands = commands;
     _mapper   = mapper;
 }