public async Task Able_to_load_embedded_resources() { IContentSet content = _contentManager.GetContentSet("Text"); string value = await content.GetAsStringAsync("Content") .ConfigureAwait(false); content.ShouldNotBeNull(); value.ShouldBe("This is the content."); }
public async Task Can_inject_content_manager_and_retrieve_content() { var manager = _fixture.ServiceProvider.GetService <IContentManager>(); manager.ShouldNotBeNull(); IContentSet contentSet = manager.GetContentSet("Text"); contentSet.ShouldNotBeNull(); string value = await contentSet.GetAsString("Content").ConfigureAwait(false); value.ShouldBe("This is the content."); }