Esempio n. 1
0
 public void EdmSingletonBasicAttributeTest()
 {
     EdmSingleton singleton = new EdmSingleton(this.entityContainer, "VIP", customerType);
     singleton.Container.Should().Be(this.entityContainer);
     singleton.ContainerElementKind.Should().Be(EdmContainerElementKind.Singleton);
     singleton.EntityType().Should().Be(customerType);          
 }
 public void TestEntityType()
 {
     var container = new EdmEntityContainer("NS", "C");
     var entityType = new EdmEntityType("NS", "People");
     var entitySet = new EdmEntitySet(container, "Peoples", entityType);
     Assert.AreEqual(entityType, entitySet.EntityType());
     var singleton = new EdmSingleton(container, "Boss", entityType);
     Assert.AreEqual(entityType, singleton.EntityType());
 }