private void SetContextInfo(ParkingLotEntities enityConttainer) { var connection = enityConttainer.Database.Connection; if (connection.State != ConnectionState.Open) { connection.Open(); } }
protected void SetEntityContainer(ParkingLotEntities container) { this._enitityContainer = container; }
public FakeParkingLotContext() { _entityContainer = new Mock <ParkingLotEntities>().Object; }