public async void NonExistentTemplate(string extension, string wopiFileUrl, WopiActionEnum action, string expectedValue) { // Arrange var urlGenerator = new WopiUrlBuilder(_discoverer); // Act var result = await urlGenerator.GetFileUrlAsync(extension, wopiFileUrl, action); // Assert Assert.Equal(expectedValue, result); }
public async void UrlWithAdditionalSettings(string extension, string wopiFileUrl, WopiActionEnum action, string expectedValue) { // Arrange var settings = new WopiUrlSettings { UI_LLCC = new CultureInfo("en-US") }; var urlGenerator = new WopiUrlBuilder(_discoverer, settings); // Act var result = await urlGenerator.GetFileUrlAsync(extension, wopiFileUrl, action); // Assert Assert.Equal(expectedValue, result); }