Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }