public DealershipEngine(IDealershipFactory factory, IInputOutputProvider ioProvider, ICommandHandler commandHandler) { if (factory == null) { throw new ArgumentNullException(nameof(factory)); } this.factory = factory; if (ioProvider == null) { throw new ArgumentNullException(nameof(ioProvider)); } this.ioProvider = ioProvider; if (commandHandler == null) { throw new ArgumentNullException(nameof(commandHandler)); } this.commandHandler = commandHandler; this.users = new HashSet <IUser>(); this.loggedUser = null; }
public DealershipEngine(IDealershipFactory factory, IInputOutputProvider ioProvider) { this.factory = factory; this.ioProvider = ioProvider; this.users = new List <IUser>(); this.loggedUser = null; }
public DealershipEngine(IDealershipFactory factory, IConsoleInputOutputProvider consoleInputOutputProvider, ICommandHandler commandHandler) { if (factory == null) { throw new ArgumentNullException(nameof(factory)); } if (consoleInputOutputProvider == null) { throw new ArgumentNullException(nameof(consoleInputOutputProvider)); } if (commandHandler == null) { throw new ArgumentNullException(nameof(commandHandler)); } this._factory = factory; this._commandHandler = commandHandler; this._console = consoleInputOutputProvider; this._users = new List <IUser>(); this._loggedUser = null; }
public ResetProgramParameters( IUserProvider userProvider, IDealershipFactory factory ) { this.userProvider = userProvider; this.factory = factory; }
public RegisterUserHandler(IUserProvider userProvider, IDealershipFactory factory) { Guard.WhenArgument(userProvider, "userProvider").IsNull().Throw(); Guard.WhenArgument(factory, "factory").IsNull().Throw(); this.userProvider = userProvider; this.factory = factory; }
public CommandManager( IReader reader, ICommandHandler commandHandler, IDealershipFactory dealershipFactory) { this.reader = reader; this.commandHandler = commandHandler; this.dealershipFactory = dealershipFactory; }
public DealershipEngine(IDealershipFactory factory, ICommandHandler commandHandler, IReader reader, IWriter writer) { this.Factory = factory; this.commandHandler = commandHandler; this.reader = reader; this.writer = writer; this.Users = new List <IUser>(); this.LoggedUser = null; }
public AddVehicleCommandHandler(IDealershipFactory factory) { if (factory == null) { throw new ArgumentNullException(nameof(factory)); } this.factory = factory; }
public DealershipEngine( ICommand startCommand, IDealershipFactory dealershipFactory, IInputOutputProvider inputOutputProvider) { this.startCommand = startCommand; this.dealershipFactory = dealershipFactory; this.inputOutputProvider = inputOutputProvider; }
public RegisterUserCommandHandler(IDealershipFactory factory) { if (factory == null) { throw new ArgumentNullException(nameof(factory)); } this.factory = factory; }
public void Reset() { this.factory = new DealershipFactory(); this.users = new List <IUser>(); this.loggedUser = null; var commands = new List <ICommand>(); var commandResult = new List <string>(); this.PrintReports(commandResult); }
public void Reset(IDealershipFactory factory) { this.Factory = factory; this.Users = new List <IUser>(); this.LoggedUser = null; var commands = new List <ICommand>(); var commandResult = new List <string>(); this.PrintReports(commandResult); }
public DealershipEngine(IDealershipFactory factory, ICommandsReader commandReader, IReporter reporter, ICommandHandler commandhandler) { this.Factory = factory; this.commandReader = commandReader; this.reporter = reporter; this.commandhandler = commandhandler; this.users = new List <IUser>(); this.loggedUser = null; }
public DealershipEngine( IWriter writer, IDataProvider dataProvider, ICommandManager commandManager, IDealershipFactory dealershipFactory) { this.writer = writer; this.dataProvider = dataProvider; this.commandManager = commandManager; this.dealershipFactory = dealershipFactory; }
public DealershipEngine(IDealershipFactory factory, ICommandParser commandParser) { if (factory == null) { throw new ArgumentNullException("Factory cannot be null!"); } if (commandParser == null) { throw new ArgumentNullException("Command parser cannot be null!"); } this.factory = factory; this.users = new List <IUser>(); this.loggedUser = null; this.commandParser = commandParser; this.logger = new ConsoleLogger(); }
public DealershipEngine(IDealershipFactory factory, IReader reader, IWriter writer) //constructor injection { if (reader == null) { throw new ArgumentNullException(nameof(reader)); } if (writer == null) { throw new ArgumentNullException(nameof(writer)); } if (factory == null) { throw new ArgumentNullException(nameof(factory)); } this.factory = factory; this.reader = reader; this.writer = writer; this.users = new List <IUser>(); this.loggedUser = null; }
public DealershipEngine(IDealershipFactory dealershipFactory, ICommandHandlerProcessor commandHandler, IInputOutputProvider inputOutputProvider) { this.dealershipFactory = dealershipFactory; this.commandHandler = commandHandler; this.inputOutputProvider = inputOutputProvider; }
public AddVehicleHandler(IDataProvider dataProvider, IDealershipFactory dealershipFactory) { this.dataProvider = dataProvider; this.dealershipFactory = dealershipFactory; }
public AddCommentHandler(IDataProvider dataProvider, IDealershipFactory dealershipFactory) { this.dataProvider = dataProvider; this.dealershipFactory = dealershipFactory; }
public RegisterUserCommandHandler(IUserProvider userProvider, IDealershipFactory dealershipFactory) { this.userProvider = userProvider; this.dealershipFactory = dealershipFactory; }
private DealershipEngine() { this.factory = new DealershipFactory(); this.users = new List <IUser>(); this.loggedUser = null; }
public AddVehicle(IUserProvider userProvider, IDealershipFactory factory) : base() { this.userProvider = userProvider; this.factory = factory; }
public MongoDbUserService(IRepository <MongoUser> mongoUsers, IDealershipFactory dealershipFactory) { this.mongoUsers = mongoUsers; this.dealershipFactory = dealershipFactory; }
public RegisterUser(IUserProvider userProvider, IDealershipFactory factory) : base() { this.userProvider = userProvider; this.factory = factory; }
public AddCommentCommandHandler(IDealershipFactory dealershipFactory, IUserProvider userProvider) { this.dealershipFactory = dealershipFactory; this.userProvider = userProvider; }
public FakeDealershipEngine(IDealershipFactory factory, ICommandParser commandParser) : base(factory, commandParser) { }
private DealershipEngine() { this.factory = new DealershipFactory(); this.users = new List<IUser>(); this.loggedUser = null; }
public RegisterUserHandler(IDataProvider dataProvider, IDealershipFactory dealershipFactory) { this.dataProvider = dataProvider; this.dealershipFactory = dealershipFactory; }
public SqlServerUserService(IRepository <SqlServerUser> usersRepository, IDealershipFactory dealershipFactory, IUnitOfWorkFactory uowFactory) { this.usersRepository = usersRepository; this.dealershipFactory = dealershipFactory; this.uowFactory = uowFactory; }
public HashSetUserService(IDealershipFactory dealershipFactory) { this.dealershipFactory = dealershipFactory; this.users = new HashSet <IUser>(); }