Beispiel #1
0
        public void CanDeriveFromNull()
        {
            // Arrange
            ODataModelBuilder builder = new ODataModelBuilder();
            ComplexTypeConfiguration <DerivedComplexType> derivedComplex = builder.ComplexType <DerivedComplexType>();

            // Act
            derivedComplex.DerivesFromNothing();

            // Assert
            Assert.Null(derivedComplex.BaseType);
        }
Beispiel #2
0
 /// <summary>
 /// Sets the base type of this complex type to <c>null</c> meaning that this complex type
 /// does not derive from anything.
 /// </summary>
 /// <returns>Returns itself so that multiple calls can be chained.</returns>
 public ComplexTypeConfiguration <TComplexType> DerivesFromNothing()
 {
     _configuration.DerivesFromNothing();
     return(this);
 }