Beispiel #1
0
 public FakeMyDbContextSqlCE4()
 {
     Categories   = new FakeDbSet <Category>("CategoryId");
     Customers    = new FakeDbSet <Customer>("CustomerId");
     Employees    = new FakeDbSet <Employee>("EmployeeId");
     Orders       = new FakeDbSet <Order>("OrderId");
     OrderDetails = new FakeDbSet <OrderDetail>("OrderId", "ProductId");
     Products     = new FakeDbSet <Product>("ProductId");
     Shippers     = new FakeDbSet <Shipper>("ShipperId");
     Suppliers    = new FakeDbSet <Supplier>("SupplierId");
 }
Beispiel #2
0
        }                                              // Suppliers

        public FakeMyDbContextSqlCE4()
        {
            _changeTracker = null;
            _configuration = null;
            _database      = null;

            Categories   = new FakeDbSet <Category>("CategoryId");
            Customers    = new FakeDbSet <Customer>("CustomerId");
            Employees    = new FakeDbSet <Employee>("EmployeeId");
            Orders       = new FakeDbSet <Order>("OrderId");
            OrderDetails = new FakeDbSet <OrderDetail>("OrderId", "ProductId");
            Products     = new FakeDbSet <Product>("ProductId");
            Shippers     = new FakeDbSet <Shipper>("ShipperId");
            Suppliers    = new FakeDbSet <Supplier>("SupplierId");
        }