public async Task LoadXamlFromEmbeddedResourceShouldBeOk() { var xamlService = new PortableXamlXamlService(); var assembly = typeof(OrganizationEntity).Assembly; var obj = await xamlService.LoadFromEmbeddedResourceAsync <object>(assembly, "S2fx.Core.S2Views>UserViews.xaml"); Assert.NotNull(obj); Assert.IsType <S2ViewDefinitions>(obj); }
public async Task LoadXamlSeedingManifestFileShouldBeOk() { var xamlService = new PortableXamlXamlService(); var assembly = typeof(OrganizationEntity).Assembly; var obj = await xamlService.LoadFromEmbeddedResourceAsync <object>(assembly, "S2fx.Core.SeedData>Init>InitSeeds.Manifest.xaml"); Assert.NotNull(obj); Assert.IsType <SeedManifest>(obj); var sm = obj as SeedManifest; Assert.NotEmpty(sm.DataSources); }