예제 #1
0
        private void SetContextInfo(ParkingLotEntities enityConttainer)
        {
            var connection = enityConttainer.Database.Connection;

            if (connection.State != ConnectionState.Open)
            {
                connection.Open();
            }
        }
예제 #2
0
 protected void SetEntityContainer(ParkingLotEntities container)
 {
     this._enitityContainer = container;
 }
예제 #3
0
 public FakeParkingLotContext()
 {
     _entityContainer = new Mock <ParkingLotEntities>().Object;
 }