コード例 #1
0
        protected override void ServicesConfiguration(IServiceCollection services)
        {
            _fakeQuery = A.Fake <IQueryPlantNutrients>();
            services.AddSingleton(_fakeQuery);

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