private void GivenUserEntersFilePath()
 {
     //Arrange
     _filePath                     = "invalidpath.txt";
     _fileBusinessLogic            = new FileBusinessLogic();
     _eventBroker                  = new Mock <IEventBroker>();
     _contactBusinessLogic         = new ContactBusinessLogic(new ContactModelFactory(new MapperService(), _eventBroker.Object));
     _fileService                  = new FileService(_fileBusinessLogic);
     _contactService               = new ContactService(_contactBusinessLogic);
     _outputWriter                 = new ConsoleOutputWriter();
     _configurationSettingProvider = new ConfigurationSettingProvider();
     _contactManager               = new ContactManager(_fileService, _contactService, _outputWriter, _configurationSettingProvider);
     _eventBroker.Setup(x => x.Raise(new ContactRegisteredEvent(_outputWriter)));
 }
Пример #2
0
 public FileService(IFileBusinessLogic fileBusinessLogic)
 {
     _fileBusinessLogic = fileBusinessLogic;
 }