StoryTeller.Model.InvalidFixture.Compile C# (CSharp) Method

Compile() public method

public Compile ( CellHandling conversions ) : FixtureModel
conversions CellHandling
return FixtureModel
        public override FixtureModel Compile(CellHandling conversions)
        {
            var model = new FixtureModel(Key);
            model.AddError(_error);

            return model;
        }
    }

Usage Example

        public static CompiledFixture CreateCompiledFixture(CellHandling cellHandling, Type type)
        {
            try
            {
                var fixture = Activator.CreateInstance(type) as Fixture;
                FixtureCache[type] = fixture;
                return(new CompiledFixture
                {
                    Fixture = fixture,
                    Model = fixture.Compile(cellHandling)
                });
            }
            catch (Exception e)
            {
                var fixture = new InvalidFixture(type, e);
                var model   = fixture.Compile(cellHandling);
                model.implementation = type.FullName;

                return(new CompiledFixture
                {
                    Fixture = fixture,
                    Model = model
                });
            }
        }
All Usage Examples Of StoryTeller.Model.InvalidFixture::Compile