Esempio n. 1
0
 public virtual void Setup()
 {
     PowerPlant    = DbContext.PowerPlant;
     DbSchema      = PowerPlant.CreateDbSchema();
     ColumnFactory = PowerPlant.CreateColumnFactory();
     TableName     = "hmstestcolumntypes";
     DbSchema.DropTable(TableName);
 }
Esempio n. 2
0
 public CreateCoreCommand(
     IPowerPlant powerPlant,
     CoreType lateInstantiationCoreType,
     string lateInstantiationCoreName,
     int lateInstantiationCoreEnergyOutput)
     : base(powerPlant)
 {
     this.LateInstantiationCoreType         = lateInstantiationCoreType;
     this.LateInstantiationCoreName         = lateInstantiationCoreName;
     this.LateInstantiationCoreEnergyOutput = lateInstantiationCoreEnergyOutput;
 }
Esempio n. 3
0
 public AttachFragmentCommand(
     IPowerPlant powerPlant,
     FragmentType lateInstantiationFragmentType,
     string lateInstantiationFragmentName,
     int lateInstantiationFragmentPressureAffection)
     : base(powerPlant)
 {
     this.LateInstantiationFragmentType = lateInstantiationFragmentType;
     this.LateInstantiationFragmentName = lateInstantiationFragmentName;
     this.LateInstantiationFragmentPressureAffection = lateInstantiationFragmentPressureAffection;
 }
Esempio n. 4
0
 public void SetUp()
 {
     this.testNuclearPowerPlant = new NuclearPowerPlant();
 }
Esempio n. 5
0
 protected DbContext(IPowerPlant powerPlant, IALogger logger)
 {
     PowerPlant = powerPlant;
     Logger     = logger ?? new ConsoleLogger();
 }
Esempio n. 6
0
 protected DbContext(string connectionString, IPowerPlant powerPlant, IALogger logger) : this(powerPlant, logger)
 {
     ConnectionString = connectionString;
 }
Esempio n. 7
0
 protected BaseCommand(IPowerPlant powerPlant)
 {
     this.PowerPlant = powerPlant;
 }
 public RemoveCoreCommand(IPowerPlant powerPlant, string lateRemovingCoreName)
     : base(powerPlant)
 {
     this.LateRemovingCoreName = lateRemovingCoreName;
 }
Esempio n. 9
0
 public StatusCommand(IPowerPlant powerPlant)
     : base(powerPlant)
 {
 }
Esempio n. 10
0
 public virtual void Setup()
 {
     PowerPlant = DbContext.PowerPlant;
     DbSchema   = PowerPlant.CreateDbSchema();
 }
Esempio n. 11
0
 public DetachFragmentCommand(IPowerPlant powerPlant)
     : base(powerPlant)
 {
 }
 public void Init()
 {
     this.powerPlant = new PowerPlant(new ConsoleWriter(), new ConsoleReader());
 }
Esempio n. 13
0
 public SelectCommand(IPowerPlant powerPlant, string lateSelectingCoreName)
     : base(powerPlant)
 {
     this.LateSelectingCoreName = lateSelectingCoreName;
 }