public void InitializeName(Type moduleType, string methodName, string moduleName, string commandName)
        {
            // Arrange
            var ctor   = NewCommandModelConstructor();
            var module = GetModule(moduleType);

            module.Name = moduleName;
            var method = GetMethod(moduleType, methodName);
            var name   = CommandNameParser.Parse(moduleName + " " + commandName);

            // Act
            var command = ctor.Create(method, module);

            // Assert
            Assert.Equal(name, command.Name, Comparer);
        }
Ejemplo n.º 2
0
 public ServerCommandCallService(IServerApiService serverApiService, string processorName = null)
 {
     _serverApiService = serverApiService;
     _commandName      = CommandNameParser.GetCommandName(typeof(T).Name, processorName);
 }