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); }
public customerProfileController(CustomerProfileDbContext context) { _context = context; }