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); }
public ServerCommandCallService(IServerApiService serverApiService, string processorName = null) { _serverApiService = serverApiService; _commandName = CommandNameParser.GetCommandName(typeof(T).Name, processorName); }