Inheritance: EFCodeFirstBaseTemplate
 public override void Generate()
 {
     if (!_model.AllowMocks) return;
     var template = new ContextMockExtenderTemplate(_model);
     var fullFileName = RELATIVE_OUTPUT_LOCATION + template.FileName;
     var eventArgs = new ProjectItemGeneratedEventArgs(fullFileName, template.FileContent, ProjectName, this, false);
     OnProjectItemGenerated(this, eventArgs);
     var gcEventArgs = new ProjectItemGenerationCompleteEventArgs(this);
     OnGenerationComplete(this, gcEventArgs);
 }
Beispiel #2
0
        public override void Generate()
        {
            if (!_model.AllowMocks)
            {
                return;
            }
            var template     = new ContextMockExtenderTemplate(_model);
            var fullFileName = RELATIVE_OUTPUT_LOCATION + template.FileName;
            var eventArgs    = new ProjectItemGeneratedEventArgs(fullFileName, template.FileContent, ProjectName, this, false);

            OnProjectItemGenerated(this, eventArgs);
            var gcEventArgs = new ProjectItemGenerationCompleteEventArgs(this);

            OnGenerationComplete(this, gcEventArgs);
        }