public void Init()
        {
            _factory = CreateFactoryToTest();

            if (_factory == null)
            {
                throw new InvalidOperationException();
            }
        }
 public AlbumsController(PhotoGaleryFactory factory, AlbumItemsPathProvider albumPathProvider)
 {
     _factory = factory;
     _albumItemsPathProvider = albumPathProvider;
 }