public PlanVersion(PlanVersionSnapshot snapshot) { _version = new VersionData(snapshot.Version); _simulations = snapshot.Simulations.Select(x => new Simulation(x)).ToList(); _name = snapshot.Name; _actions = snapshot.Actions; _resourceTypes = snapshot.ResourceTypes; _depot = snapshot.Depot; _readonly = new ReadonlyMixin(true); }
public SimulationVersion(SimulationVersionSnapshot snapshot) { _version = new VersionData(snapshot.Version); _runs = snapshot.Runs; _readonly = new ReadonlyMixin(true); }
private SimulationVersion(SimulationVersionSnapshot snapshot, UserReference user) : this(snapshot) { _version = _version.Increment(user); _readonly = new ReadonlyMixin(false); }