コード例 #1
0
ファイル: UnitTest1.cs プロジェクト: d08nirav/CustomerProfile
        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);
        }
コード例 #2
0
 public customerProfileController(CustomerProfileDbContext context)
 {
     _context = context;
 }