public void SetUp() { _builder = new DbContextOptionsBuilder <BuyerDBContext>().EnableSensitiveDataLogging().UseInMemoryDatabase(Guid.NewGuid().ToString()); BuyerDBContext db = new BuyerDBContext(_builder.Options); iitemRepository = new ItemRepository(db); }
public void SetUp() { _builder = new DbContextOptionsBuilder <BuyerDBContext>().EnableSensitiveDataLogging().UseInMemoryDatabase(Guid.NewGuid().ToString()); BuyerDBContext db = new BuyerDBContext(_builder.Options); db.Add(new Buyer { Buyerid = 134, Username = "******", Password = "******", Email = "*****@*****.**", Mobileno = "9182731927" }); buyerRepository = new BuyerRepository(db); }
public BuyerRepository(BuyerDBContext buyerContext) { _buyerContext = buyerContext; }
public UserRepository(BuyerDBContext context) { _context = context; }
public ItemRepository(BuyerDBContext context) { _context = context; }