public PublishAsyncSteps(GivenData given, ActualData actual, ScenarioHelpers scenarioHelpers, InvocationRecorder invocationRecorder, ISlugFactory slugFactory) { _given = given; _actual = actual; _blogPostRepository = scenarioHelpers.BlogPostRepository; _blogPostRepositoryWorkingDirectory = scenarioHelpers.BlogPostRepositoryWorkingDirectory; _invocationRecorder = invocationRecorder; _slugFactory = slugFactory; }
public GivenData(ISlugFactory slugFactory) { _slugFactory = slugFactory; }
public GivenData(ISlugFactory slugFactory) { _slugFactory = slugFactory; Git = new GitData(); }
public static string ToUrlFriendlyFileNameWithExtension(this string fileNameWithExtension, ISlugFactory slugFactory) { var fileNameWithoutExtension = Path.GetFileNameWithoutExtension(fileNameWithExtension); var extension = Path.GetExtension(fileNameWithExtension); var urlFriendly = slugFactory.CreateSlug(fileNameWithoutExtension) + extension; return(urlFriendly); }