public FakePTDbContext() { Colors = new FakeDbSet <Color>("ColorId"); Options = new FakeDbSet <Option>("OptionId"); Questions = new FakeDbSet <Question>("QuestionId"); Results = new FakeDbSet <Result>("Letter"); }
public FakeCMDataContext() { Announcements = new FakeDbSet <Announcement>("AnnouncementId"); AspNetRoles = new FakeDbSet <AspNetRole>("Id"); AspNetUsers = new FakeDbSet <AspNetUser>("Id"); AspNetUserClaims = new FakeDbSet <AspNetUserClaim>("Id"); AspNetUserLogins = new FakeDbSet <AspNetUserLogin>("LoginProvider", "ProviderKey", "UserId"); AspNetUserRoles = new FakeDbSet <AspNetUserRole>("UserId", "RoleId"); BlobFiles = new FakeDbSet <BlobFile>("BlobFileId"); BlobFileTypes = new FakeDbSet <BlobFileType>("BlobFileTypeId"); FeaturedEvents = new FakeDbSet <FeaturedEvent>("FeaturedEventId"); Feedbacks = new FakeDbSet <Feedback>("FeedbackId"); FeedbackInitiatorTypes = new FakeDbSet <FeedbackInitiatorType>("FeedbackInitiatorTypeId"); FeedbackTypes = new FakeDbSet <FeedbackType>("FeedbackTypeId"); GenderTypes = new FakeDbSet <GenderType>("GenderTypeId"); LanguageTypes = new FakeDbSet <LanguageType>("LanguageTypeId"); Logs = new FakeDbSet <Log>("Id"); LogTypes = new FakeDbSet <LogType>("Id"); LookupLists = new FakeDbSet <LookupList>("LookupListId"); RefreshTokens = new FakeDbSet <RefreshToken>("RefreshTokenId"); Rooms = new FakeDbSet <Room>("RoomId"); Sessions = new FakeDbSet <Session>("SessionId"); SessionCategoryTypes = new FakeDbSet <SessionCategoryType>("SessionCategoryTypeId"); SessionLikes = new FakeDbSet <SessionLike>("SessionId", "UserProfileId"); SessionSessionCategoryTypes = new FakeDbSet <SessionSessionCategoryType>("SessionId", "SessionCategoryTypeId"); SessionSpeakers = new FakeDbSet <SessionSpeaker>("SessionId", "UserProfileId"); Sponsors = new FakeDbSet <Sponsor>("SponsorId"); SponsorFeaturedEvents = new FakeDbSet <SponsorFeaturedEvent>("SponsorId", "FeaturedEventId"); SponsorTypes = new FakeDbSet <SponsorType>("SponsorTypeId"); UserProfiles = new FakeDbSet <UserProfile>("UserProfileId"); InitializePartial(); }
public FakeContexto() { _changeTracker = null; _configuration = null; _database = null; Almacenes = new FakeDbSet <Almacene>("Id"); AlmacenProductoes = new FakeDbSet <AlmacenProducto>("ProductoId", "AlmacenId", "UsuarioCreadorId", "Stock", "CostoPromedio", "FechaUltimo"); Categorias = new FakeDbSet <Categoria>("Id"); Clientes = new FakeDbSet <Cliente>("Id"); Cobranzas = new FakeDbSet <Cobranza>("Id", "ClienteId", "EmpresaId", "SucursalId", "SaldoActual", "Activo", "Fecha"); Empresas = new FakeDbSet <Empresa>("Id"); Entradas = new FakeDbSet <Entrada>("Id"); EntradaDetalles = new FakeDbSet <EntradaDetalle>("EntradaId", "ProductoId", "Cantidad", "Costo", "Costo1", "Iva"); Formatoes = new FakeDbSet <Formato>("Id"); Grupos = new FakeDbSet <Grupos>("Id"); InventarioFisicoes = new FakeDbSet <InventarioFisico>("Id"); Lineas = new FakeDbSet <Linea>("Id"); Lotes = new FakeDbSet <Lote>("Id"); MaximosMinimoes = new FakeDbSet <MaximosMinimo>("Id", "AlmacenId", "ProductoId", "EmpresaId", "ValorMin", "ValorMax", "Activo", "Fecha"); Monedas = new FakeDbSet <Moneda>("Id"); Movimientoes = new FakeDbSet <Movimiento>("Id"); Planes = new FakeDbSet <Plane>("Id"); Productoes = new FakeDbSet <Producto>("Id"); Sucursales = new FakeDbSet <Sucursale>("Id"); TiposMovimientoes = new FakeDbSet <TiposMovimiento>("Id"); TransferenciasInternas = new FakeDbSet <TransferenciasInterna>("Id"); }
public static void AddOrder(DTO.Order current_order, DTO.Customer current_customer) { PapaBobEntities db = new PapaBobEntities(); System.Data.Entity.DbSet <Order> dbOrders = db.Orders; var dbCustomers = db.Customers; var new_order = new Persistence.Order(); CreateNewOrder(current_order, out new_order); var dbCustomersList = db.Customers.ToList(); bool check_if_customer_exits = CustomerRepository.CustomerExists(dbCustomersList, current_customer); if (!check_if_customer_exits) { var new_customer = new Customer(); CustomerRepository.CreateNewCustomer(current_customer, out new_customer); new_order.customer_id = new_customer.customer_id; new_customer.amount_owing = current_order.payment_type != DTO.Payment.Cash ? current_order.cost : 0; new_order.Customer = new_customer; dbCustomers.Add(new_customer); } else { var existing_customer = dbCustomersList?.Find(p => p.phone_number == current_customer.phone_number); new_order.customer_id = existing_customer.customer_id; existing_customer.amount_owing += current_order.payment_type != DTO.Payment.Cash ? current_order.cost : 0; } dbOrders.Add(new_order); db.SaveChanges(); }
private bool Register(string ClientID, string emailAddress, string Password) { if (LogEvent != null) { LogEvent("Registering User"); } using (var db = new DamoclesEntities()) { System.Data.Entity.DbSet <User> users = db.Users; var eu = Users.CreateUser(ClientID, emailAddress, Password); users.Add(eu); int rows = db.SaveChanges(); if (rows < 1) { if (LogEvent != null) { LogEvent("Failed to Add user: " + emailAddress); } return(false); } else { login.UpdateLoginHistory(emailAddress); return(true); } } }
public FakeMyDbContext() { Students = new FakeDbSet <Student>("Id"); StudentCourses = new FakeDbSet <StudentCourse>("Id"); InitializePartial(); }
public FakeNorthwindDbContext() { AlphabeticalListOfProducts = new FakeDbSet <AlphabeticalListOfProduct>("ProductId", "ProductName", "Discontinued", "CategoryName"); Categories = new FakeDbSet <Category>("CategoryId"); CategorySalesFor1997 = new FakeDbSet <CategorySalesFor1997>("CategoryName"); CurrentProductLists = new FakeDbSet <CurrentProductList>("ProductId", "ProductName"); Customers = new FakeDbSet <Customer>("CustomerId"); CustomerAndSuppliersByCities = new FakeDbSet <CustomerAndSuppliersByCity>("CompanyName", "Relationship"); CustomerDemographics = new FakeDbSet <CustomerDemographic>("CustomerTypeId"); Employees = new FakeDbSet <Employee>("EmployeeId"); Invoices = new FakeDbSet <Invoice>("CustomerName", "Salesperson", "OrderId", "ShipperName", "ProductId", "ProductName", "UnitPrice", "Quantity", "Discount"); NewTables = new FakeDbSet <NewTable>("Id"); Orders = new FakeDbSet <Order>("OrderId"); OrderDetails = new FakeDbSet <OrderDetail>("OrderId", "ProductId"); OrderDetailsExtendeds = new FakeDbSet <OrderDetailsExtended>("OrderId", "ProductId", "ProductName", "UnitPrice", "Quantity", "Discount"); OrdersQries = new FakeDbSet <OrdersQry>("OrderId", "CompanyName"); OrderSubtotals = new FakeDbSet <OrderSubtotal>("OrderId"); Products = new FakeDbSet <Product>("ProductId"); ProductsAboveAveragePrices = new FakeDbSet <ProductsAboveAveragePrice>("ProductName"); ProductSalesFor1997 = new FakeDbSet <ProductSalesFor1997>("CategoryName", "ProductName"); ProductsByCategories = new FakeDbSet <ProductsByCategory>("CategoryName", "ProductName", "Discontinued"); Regions = new FakeDbSet <Region>("RegionId"); SalesByCategories = new FakeDbSet <SalesByCategory>("CategoryId", "CategoryName", "ProductName"); SalesTotalsByAmounts = new FakeDbSet <SalesTotalsByAmount>("OrderId", "CompanyName"); Shippers = new FakeDbSet <Shipper>("ShipperId"); SummaryOfSalesByQuarters = new FakeDbSet <SummaryOfSalesByQuarter>("OrderId"); SummaryOfSalesByYears = new FakeDbSet <SummaryOfSalesByYear>("OrderId"); Suppliers = new FakeDbSet <Supplier>("SupplierId"); Sysdiagrams = new FakeDbSet <Sysdiagram>("DiagramId"); Territories = new FakeDbSet <Territory>("TerritoryId"); InitializePartial(); }
public FakeQRDataContext() { Barcodes = new FakeDbSet <Barcode>("BarcodeId"); BarcodeScanLogs = new FakeDbSet <BarcodeScanLog>("BarcodeScanLogId"); BarcodeTypes = new FakeDbSet <BarcodeType>("BarcodeTypeId"); BarcodeTypeTranslations = new FakeDbSet <BarcodeTypeTranslation>("BarcodeTypeTranslationId"); BusRoutes = new FakeDbSet <BusRoute>("BusRouteId"); BusRouteStops = new FakeDbSet <BusRouteStop>("BusRouteStopId"); BusRouteTranslations = new FakeDbSet <BusRouteTranslation>("BusRouteTranslationId"); Drivers = new FakeDbSet <Driver>("DriverId"); DriverShifts = new FakeDbSet <DriverShift>("DriverShiftId"); Feedbacks = new FakeDbSet <Feedback>("FeedbackId"); FeedbackInitiatorTypes = new FakeDbSet <FeedbackInitiatorType>("FeedbackInitiatorTypeId"); FeedbackInitiatorTypeTranslations = new FakeDbSet <FeedbackInitiatorTypeTranslation>("FeedbackInitiatorTypeTranslationId"); FeedbackTypes = new FakeDbSet <FeedbackType>("FeedbackTypeId"); FeedbackTypeTranslations = new FakeDbSet <FeedbackTypeTranslation>("FeedbackTypeTranslationId"); GenderTypes = new FakeDbSet <GenderType>("GenderTypeId"); GenderTypeTranslations = new FakeDbSet <GenderTypeTranslation>("GenderTypeTranslationId"); Holidays = new FakeDbSet <Holiday>("HolidayId"); HolidayTranslations = new FakeDbSet <HolidayTranslation>("HolidayTranslationId"); LanguageTypes = new FakeDbSet <LanguageType>("LanguageTypeId"); Locations = new FakeDbSet <Location>("LocationId"); LocationTypes = new FakeDbSet <LocationType>("LocationTypeId"); LocationTypeTranslations = new FakeDbSet <LocationTypeTranslation>("LocationTypeTranslationId"); NotificationTypes = new FakeDbSet <NotificationType>("NotificationTypeId"); NotificationTypeTranslations = new FakeDbSet <NotificationTypeTranslation>("NotificationTypeTranslationId"); Reservations = new FakeDbSet <Reservation>("ReservationId"); ReservationCancellationReasonTypes = new FakeDbSet <ReservationCancellationReasonType>("ReservationCancellationReasonTypeId"); ReservationCancellationReasonTypeTranslations = new FakeDbSet <ReservationCancellationReasonTypeTranslation>("ReservationCancellationReasonTypeTranslationId"); ReservationRequests = new FakeDbSet <ReservationRequest>("ReservationRequestId"); ReservationRequestCancellationReasonTypes = new FakeDbSet <ReservationRequestCancellationReasonType>("ReservationRequestCancellationReasonTypeId"); ReservationRequestCancellationReasonTypeTranslations = new FakeDbSet <ReservationRequestCancellationReasonTypeTranslation>("ReservationRequestCancellationReasonTypeTranslationId"); ReservationRequestOptions = new FakeDbSet <ReservationRequestOption>("ReservationRequestOptionId"); ReservationRequestStatusTypes = new FakeDbSet <ReservationRequestStatusType>("ReservationRequestStatusTypeId"); ReservationRequestStatusTypeTranslations = new FakeDbSet <ReservationRequestStatusTypeTranslation>("ReservationRequestStatusTypeTranslationId"); ReservationStatusTypes = new FakeDbSet <ReservationStatusType>("ReservationStatusTypeId"); ReservationStatusTypeTranslations = new FakeDbSet <ReservationStatusTypeTranslation>("ReservationStatusTypeTranslationId"); Rides = new FakeDbSet <Ride>("RideId"); RidePositions = new FakeDbSet <RidePosition>("RidePositionId"); RideServiceTypes = new FakeDbSet <RideServiceType>("RideServiceTypeId"); RideServiceTypeTranslations = new FakeDbSet <RideServiceTypeTranslation>("RideServiceTypeTranslationId"); Users = new FakeDbSet <User>("UserId"); UserRewardAccounts = new FakeDbSet <UserRewardAccount>("UserId"); UserRewardAccountTransactions = new FakeDbSet <UserRewardAccountTransaction>("UserRewardAccountTransactionId"); UserRewardAccountTransactionTypes = new FakeDbSet <UserRewardAccountTransactionType>("UserRewardAccountTransactionTypeId"); UserRewardAccountTransactionTypeTranslations = new FakeDbSet <UserRewardAccountTransactionTypeTranslation>("UserRewardAccountTransactionTypeTranslationId"); UsersLocations = new FakeDbSet <UsersLocation>("UserId", "LocationId"); UsersNotificationTypes = new FakeDbSet <UsersNotificationType>("UserId", "NotificationTypeId"); Vehicles = new FakeDbSet <Vehicle>("VehicleId"); VehicleBusRoutes = new FakeDbSet <VehicleBusRoute>("VehicleId", "BusRouteId"); VehicleFeatureTypes = new FakeDbSet <VehicleFeatureType>("VehicleFeatureTypeId"); VehicleFeatureTypeTranslations = new FakeDbSet <VehicleFeatureTypeTranslation>("VehicleFeatureTypeTranslationId"); VehicleStatusTypes = new FakeDbSet <VehicleStatusType>("VehicleStatusTypeId"); VehicleStatusTypeTranslations = new FakeDbSet <VehicleStatusTypeTranslation>("VehicleStatusTypeTranslationId"); VehicleTypes = new FakeDbSet <VehicleType>("VehicleTypeId"); VehicleTypeVehicleFeatureTypes = new FakeDbSet <VehicleTypeVehicleFeatureType>("VehicleTypeId", "VehicleFeatureTypeId"); VehicleVehicleFeatureTypes = new FakeDbSet <VehicleVehicleFeatureType>("VehicleId", "VehicleFeatureTypeId"); InitializePartial(); }
public FakeTestDbContext() { ColumnNames = new FakeDbSet <ColumnName>("C36"); Stafford_Boos = new FakeDbSet <Stafford_Boo>("Id"); Stafford_ComputedColumns = new FakeDbSet <Stafford_ComputedColumn>("Id"); Stafford_Foos = new FakeDbSet <Stafford_Foo>("Id"); }
public FakeWorkBenchContext() { Activities = new FakeDbSet <Activity>("ActivityId"); Companies = new FakeDbSet <Company>("CompanyId"); CvBanks = new FakeDbSet <CvBank>("CvBankId"); CvBankOwners = new FakeDbSet <CvBankOwner>("CvBankOwnerId"); Departments = new FakeDbSet <Department>("CompanyId", "PersonId"); Dictionaries = new FakeDbSet <Dictionary>("DictionaryTypeId"); Events = new FakeDbSet <Event>("EventId"); InterviewKits = new FakeDbSet <InterviewKit>("InterviewKitId"); InterviewKitAnswers = new FakeDbSet <InterviewKitAnswer>("InterviewKitAnswerId"); Jobs = new FakeDbSet <Job>("JobId"); JobBoards = new FakeDbSet <JobBoard>("JobBoardId"); JobBoardCarts = new FakeDbSet <JobBoardCart>("JobBoardCartId"); JobBoardCredentials = new FakeDbSet <JobBoardCredential>("JobBoardCredentialId"); JobForms = new FakeDbSet <JobForm>("JobFormId"); JobFormResults = new FakeDbSet <JobFormResult>("JobFormResultId"); JobFormResultDetails = new FakeDbSet <JobFormResultDetail>("JobFormResultDetailId"); JobFormResultQas = new FakeDbSet <JobFormResultQa>("JobFormResultQaid"); JobFormResultsViews = new FakeDbSet <JobFormResultsView>("CvBankId", "CvBankOwnerId", "JobFormResultId", "JobCreatedById", "CompanyId", "CompanyName", "DepartmentId", "Department"); JobFormResultXes = new FakeDbSet <JobFormResultX>("JobFormResultId", "JobFormId", "CandidateId", "FirstName", "LastName", "Email", "Headline", "Telephone", "Address", "Photo", "Video", "Summary", "CvBankId", "Referer", "IsCoverLetterIncluded", "UpdatedBy", "CreatedBy", "DateAdded", "DateUpdated"); People = new FakeDbSet <Person>("PersonId"); Pipelines = new FakeDbSet <Pipeline>("PipelineId"); PricePackages = new FakeDbSet <PricePackage>("PricePackageId"); Reminders = new FakeDbSet <Reminder>("ReminderId"); SharedContents = new FakeDbSet <SharedContent>("SharedContentId"); Stages = new FakeDbSet <Stage>("StageId"); Tags = new FakeDbSet <Tag>("TagId"); Templates = new FakeDbSet <Template>("TemplateId"); TokenManagers = new FakeDbSet <TokenManager>("TokenId"); InitializePartial(); }
public FakeMyDbContext() { Notes = new FakeDbSet <Note>("NoteId"); People = new FakeDbSet <Person>("PersonId"); InitializePartial(); }
public FakeIlhaBela() { CaixaMovimentoes = new FakeDbSet <CaixaMovimento>("Id"); Camas = new FakeDbSet <Cama>("Id"); Empresas = new FakeDbSet <Empresa>("Id"); Hospedagems = new FakeDbSet <Hospedagem>("Id"); HospedagemConsumoes = new FakeDbSet <HospedagemConsumo>("Id"); HospedagemDiarias = new FakeDbSet <HospedagemDiaria>("Id"); HospedagemHospedes = new FakeDbSet <HospedagemHospede>("IdHospedagem", "IdHospede"); HospedagemPagamentoes = new FakeDbSet <HospedagemPagamento>("Id"); Hospedes = new FakeDbSet <Hospede>("Id"); Produtoes = new FakeDbSet <Produto>("Id"); ProdutoMovimentoes = new FakeDbSet <ProdutoMovimento>("Id"); Quartos = new FakeDbSet <Quarto>("Id"); QuartoCamas = new FakeDbSet <QuartoCama>("IdQuarto", "IdCama"); Reservas = new FakeDbSet <Reserva>("Id"); ReservaAgendamentoes = new FakeDbSet <ReservaAgendamento>("Id"); ReservaPagamentoes = new FakeDbSet <ReservaPagamento>("Id"); ReservaQuartoes = new FakeDbSet <ReservaQuarto>("Id"); TipoOperacaos = new FakeDbSet <TipoOperacao>("Id"); TipoPagamentoes = new FakeDbSet <TipoPagamento>("Id"); TipoQuartoes = new FakeDbSet <TipoQuarto>("Id"); InitializePartial(); }
public FakeMyDbContext() { Matches = new FakeDbSet <Match>("Id"); Scores = new FakeDbSet <Score>("Id", "TeamId", "MatchId", "Score_"); Sysdiagrams = new FakeDbSet <Sysdiagram>("DiagramId"); Teams = new FakeDbSet <Team>("Id"); }
public Fakedb_FMDSS() { AspNetRoles = new FakeDbSet <AspNetRole>("Id"); AspNetUsers = new FakeDbSet <AspNetUser>("Id"); AspNetUserClaims = new FakeDbSet <AspNetUserClaim>("Id"); AspNetUserLogins = new FakeDbSet <AspNetUserLogin>("LoginProvider", "ProviderKey", "UserId"); Citizen_TblAssignGuideAndVehicleForDateOfVisites = new FakeDbSet <Citizen_TblAssignGuideAndVehicleForDateOfVisite>("Id"); Citizen_TblCancelRequestedIds = new FakeDbSet <Citizen_TblCancelRequestedId>("Id", "Status"); Citizen_TblDownloadTickets = new FakeDbSet <Citizen_TblDownloadTicket>("Id", "RequestedId", "TableName"); Citizen_TblPaymentByDepartmentalKioskUsers = new FakeDbSet <Citizen_TblPaymentByDepartmentalKioskUser>("RowId", "PaymentMode"); Citizen_TblPaymentByEmitraKioskUsers = new FakeDbSet <Citizen_TblPaymentByEmitraKioskUser>("RowId"); Citizen_TblSafariBookings = new FakeDbSet <Citizen_TblSafariBooking>("Id"); Citizen_TblTicketBookings = new FakeDbSet <Citizen_TblTicketBooking>("TicketId"); Citizen_TblTicketBookingInventories = new FakeDbSet <Citizen_TblTicketBookingInventory>("Id"); Citizen_TblTicketBookingMembers = new FakeDbSet <Citizen_TblTicketBookingMember>("MemberId"); Citizen_TblWildLifeSafariBookingDetails = new FakeDbSet <Citizen_TblWildLifeSafariBookingDetail>("Rowid"); Citizen_TblWildLifeTicketBookingMemberDetails = new FakeDbSet <Citizen_TblWildLifeTicketBookingMemberDetail>("Rowid"); Citizen_TblZooBookings = new FakeDbSet <Citizen_TblZooBooking>("ZooBookingId"); Citizen_TblZooBookingHeadDetails = new FakeDbSet <Citizen_TblZooBookingHeadDetail>("Id"); Citizen_TblZooBookingHeadDetailsTemps = new FakeDbSet <Citizen_TblZooBookingHeadDetailsTemp>("Id"); Citizen_TblZooMemberDetails = new FakeDbSet <Citizen_TblZooMemberDetail>("ZooMemberId"); Citizen_TblZooStudentDocuments = new FakeDbSet <Citizen_TblZooStudentDocument>("ZooStudentId"); Citizen_TblZooVehicleDetails = new FakeDbSet <Citizen_TblZooVehicleDetail>("ZooVehicleId"); Citizen_ZooSeatInventoryOlds = new FakeDbSet <Citizen_ZooSeatInventoryOld>("ZooSeatInventoryId"); CompanyRagistrations = new FakeDbSet <CompanyRagistration>("CompanyId"); GIS_TblMstFixedLandNocTypes = new FakeDbSet <GIS_TblMstFixedLandNocType>("NocTypeId"); GIS_TblMstFixedPermissionPlants = new FakeDbSet <GIS_TblMstFixedPermissionPlant>("Id"); GIS_TblMstFixedPermissionPlantMappings = new FakeDbSet <GIS_TblMstFixedPermissionPlantMapping>("Id"); GIS_TblMstFixedPermissionTypes = new FakeDbSet <GIS_TblMstFixedPermissionType>("PId"); Master_TblMstAdminDivisions = new FakeDbSet <Master_TblMstAdminDivision>("DivisionCode"); Master_TblMstDistricts = new FakeDbSet <Master_TblMstDistrict>("DistCode"); Master_TblMstEqptSanctuariesFees = new FakeDbSet <Master_TblMstEqptSanctuariesFee>("Id"); Master_TblMstModeOfBookings = new FakeDbSet <Master_TblMstModeOfBooking>("Id"); Master_TblMstPlaces = new FakeDbSet <Master_TblMstPlace>("PlaceId"); Master_TblMstPlaceBookingDurations = new FakeDbSet <Master_TblMstPlaceBookingDuration>("Id"); Master_TblMstPlaceDisplays = new FakeDbSet <Master_TblMstPlaceDisplay>("Rowid", "Name"); Master_TblMstRecordStatus = new FakeDbSet <Master_TblMstRecordStatu>("Isactive"); Master_TblMstShiftTypes = new FakeDbSet <Master_TblMstShiftType>("Rowid", "Name"); Master_TblMstTicketingFees = new FakeDbSet <Master_TblMstTicketingFee>("FeesId"); Master_TblMstVehicleEquipments = new FakeDbSet <Master_TblMstVehicleEquipment>("CategoryId"); Master_TblMstVehicleEquipmentFees = new FakeDbSet <Master_TblMstVehicleEquipmentFee>("VehicleId"); Master_TblMstWildLifeEqptFeeDetails = new FakeDbSet <Master_TblMstWildLifeEqptFeeDetail>("Rowid"); Master_TblMstWildLifeHeadDetails = new FakeDbSet <Master_TblMstWildLifeHeadDetail>("Rowid"); Master_TblMstWildLifeHeadMasters = new FakeDbSet <Master_TblMstWildLifeHeadMaster>("HeadId"); Master_TblMstWildLifeTicketFeeDetails = new FakeDbSet <Master_TblMstWildLifeTicketFeeDetail>("Rowid"); Master_TblMstZones = new FakeDbSet <Master_TblMstZone>("ZoneId", "PlaceId", "ZoneName", "TicketAllocatedPerShift", "SeatsForCitizen", "ShiftTypeId", "Isactive", "EnteredOn", "EnteredBy", "UpdatedOn", "UpdatedBy"); Master_TblZooHeadMasters = new FakeDbSet <Master_TblZooHeadMaster>("HeadId"); Master_TblZooPlaceWiseHeads = new FakeDbSet <Master_TblZooPlaceWiseHead>("ZooPlaceWiseHeadId"); Master_TblZooSeatInventories = new FakeDbSet <Master_TblZooSeatInventory>("ZooSeatInventoryId"); Master_TblZooTicketHeaderFooters = new FakeDbSet <Master_TblZooTicketHeaderFooter>("Id"); Master_TblZooVehicleEquipments = new FakeDbSet <Master_TblZooVehicleEquipment>("ZooVehicleId"); Master_TblZooVehicleFees = new FakeDbSet <Master_TblZooVehicleFee>("FeeId"); Products = new FakeDbSet <Product>("ProductId"); TblMstDistricts = new FakeDbSet <TblMstDistrict>("DistCode"); TblMstPlaces = new FakeDbSet <TblMstPlace>("PlaceId"); TblUserProfiles = new FakeDbSet <TblUserProfile>("UserId"); Tokens = new FakeDbSet <Token>("TokenId"); Users = new FakeDbSet <User>("UserId"); ZooSeatInventoryOlds = new FakeDbSet <ZooSeatInventoryOld>("ZooSeatInventoryId"); }
public FakeMyDbContext() { _changeTracker = null; _configuration = null; _database = null; MmCodes = new FakeDbSet <MmCode>("GroupCode", "Code", "RevNo"); }
public FakeMyDbContext() { AspNetRoles = new FakeDbSet <AspNetRole>("Id"); AspNetUsers = new FakeDbSet <AspNetUser>("Id"); AspNetUserClaims = new FakeDbSet <AspNetUserClaim>("Id"); AspNetUserLogins = new FakeDbSet <AspNetUserLogin>("LoginProvider", "ProviderKey", "UserId"); Suppliers = new FakeDbSet <Supplier>("Supplierid"); }
public FakeAppDbContext() { _changeTracker = null; _configuration = null; _database = null; Regions = new FakeDbSet <Region>("RegionId"); }
public FakeSystemDbContext() { _changeTracker = null; _configuration = null; _database = null; Currencies = new FakeDbSet <Currency>("CodeIso", "Designation", "Active"); }
public FakeSomministrazioneDbContext() { _changeTracker = null; _configuration = null; _database = null; Operatori = new FakeDbSet <Operatore>("Id"); }
public FakeAuthenticationContext() { _changeTracker = null; _configuration = null; _database = null; ApiKeys = new FakeDbSet <ApiKey>("Id", "Name", "Key"); }
public FakeRSDataContext() { Resources = new FakeDbSet <Resource>("Id"); ResourceSchedules = new FakeDbSet <ResourceSchedule>("Id"); Users = new FakeDbSet <User>("Id"); InitializePartial(); }
public FakeMyDbContext() { _changeTracker = null; _configuration = null; _database = null; Variables = new FakeDbSet <Variable>("VariableId"); }
public FakeMyToolsContext() { _changeTracker = null; _configuration = null; _database = null; MtTodoItems = new FakeDbSet <MtTodoItem>("Id"); }
public FakeMyDbContext() { AppRoles = new FakeDbSet <AppRole>("Id"); ExceptionLogs = new FakeDbSet <ExceptionLog>("ExceptionId"); Roles = new FakeDbSet <Role>("Id"); UserApps = new FakeDbSet <UserApp>("Guid"); UserRoles = new FakeDbSet <UserRole>("BlazerId"); }
public FakeTestDbContext() { _changeTracker = null; _configuration = null; _database = null; Users = new FakeDbSet <User>("Id"); }
public FakeFakeMobileCarrierDbContext() { _changeTracker = null; _configuration = null; _database = null; Users = new FakeDbSet <User>("UserId", "FirstName", "LastName", "PhoneNumber", "Pesel"); }
public void retrieveDataFromDB() { DeliciousDBEntities1 db = new DeliciousDBEntities1(); this.products = db.Products; this.productsInRecipes = db.ProductsInRecipe; this.recipes = db.Recipe; }
public FakeTestDbContext() { _changeTracker = null; _configuration = null; _database = null; Children = new FakeDbSet <Child>("ChildId"); Parents = new FakeDbSet <Parent>("ParentId"); }
public FakePOCOContext() { _changeTracker = null; _configuration = null; _database = null; Players = new FakeDbSet <Player>("Id"); Teams = new FakeDbSet <Team>("Id"); }
public FakeMyDbContext() { _changeTracker = null; _configuration = null; _database = null; VehicleMakes = new FakeDbSet <VehicleMake>("Id"); VehicleModels = new FakeDbSet <VehicleModel>("Id"); }
public override void Initialize(string name, System.Collections.Specialized.NameValueCollection config) { if (config == null) throw new ArgumentNullException("config"); if (string.IsNullOrEmpty(name)) name = DEFAULT_NAME; base.Initialize(name, config); var providerName = config[DEFAULT_PROVIDER_CONFIG_NAME]; if (!string.IsNullOrEmpty(providerName)) this.preProvider = Membership.Providers[providerName] ?? Membership.Providers[DEFAULT_PROVIDER_NAME]; if (this.preProvider != null) this.preProvider.ValidatingPassword += delegate(object sender, ValidatePasswordEventArgs args) { this.OnValidatingPassword(args); }; this.dbContext = new WebPagesContext(); this.userProfiles = this.dbContext.UserProfiles; this.oAuthMemberships = this.dbContext.WebPagesOAuthMembership; this.roles = this.dbContext.WebPagesRoles; this.usersInRoles = this.dbContext.WebPagesUsersInRoles; this.memberships = this.dbContext.WebPagesMembership; }