public CreateServerHandlerTests()
        {
            _commandValidator = new CreateServerCommandValidator();

            _serverRepositoryMock = new Mock <IServerRepository>();

            var logger = new NullLogger <CreateServerHandler>();

            _handler = new CreateServerHandler(_commandValidator, _serverRepositoryMock.Object, logger);
        }
示例#2
0
 public CreateServerCommandValidatorTests()
 {
     _validator = new CreateServerCommandValidator();
 }
示例#3
0
 public CreateServerHandler(CreateServerCommandValidator validator, IServerRepository serverRepository, ILogger <CreateServerHandler> logger)
 {
     _logger           = logger;
     _serverRepository = serverRepository;
     _validator        = validator;
 }