public void ShapeHasAttributesType() { var factory = _serviceProvider.GetService <IShapeFactory>(); dynamic foo = factory.Create("Foo", ArgsUtility.Empty()); ShapeMetadata metadata = foo.Metadata; Assert.Equal("Foo", metadata.Type); }
public void ShapeHasAttributesType() { var factory = _container.Resolve <IShapeFactory>(); dynamic foo = factory.Create("Foo", ArgsUtility.Empty()); ShapeMetadata metadata = foo.Metadata; Assert.That(metadata.Type, Is.EqualTo("Foo")); }