Esempio n. 1
0
        public UnitTest1()
        {
            var dbOption = new DbContextOptionsBuilder <CustomerProfileDbContext>().UseSqlServer("Server = d08nirav.database.windows.net; Initial Catalog = customer_profile; User ID = d08nirav; Password = Dcba1234!; MultipleActiveResultSets = False; Encrypt = True; ").Options;

            _context = new CustomerProfileDbContext(dbOption);
            _customerProfileController = new customerProfileController(_context);
        }
Esempio n. 2
0
 public customerProfileController(CustomerProfileDbContext context)
 {
     _context = context;
 }