public ConstructionYard(IDeployerFactory factory, string rootDir) { _factory = factory; _rootDir = rootDir; _garbage = _factory.CreateGarbage(); _logger = _factory.CreateLogger(); _persist = _factory.CreatePersistence(); var smallIo = _factory.CreateSmallTextIo(_persist); var jsonPersist = new JsonPersistence(smallIo); var slugCreator = new SlugCreator(); _configService = new RealConfigurationService(_rootDir, jsonPersist, slugCreator); }
public void BeforeEachTest() { _fileIo = new Mock<ISmallTextFileIo>(); _sut = new JsonPersistence(_fileIo.Object); }