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

            _fakeCommand = A.Fake <ICommandPlantEvents>();
            services.AddSingleton(_fakeCommand);
        }
예제 #2
0
 public PlantEventsController(IQueryPlantEvents queries, ICommandPlantEvents commands, IMapper mapper)
 {
     _queries  = queries;
     _commands = commands;
     _mapper   = mapper;
 }