public PowerBIService(ICustomerDbInfo customerDbInfo) { _customerDbInfo = customerDbInfo; PBIApplicationId = _customerDbInfo.PBAppId; PBIUserName = _customerDbInfo.PBUserName; PBIUserPassword = _customerDbInfo.PBPass; PBIWorkspaceId = _customerDbInfo.WorkspaceID; //PBIApplicationId = "bd853607-9d2d-42ac-8764-62987a571866"; //PBIUserName = "******"; //PBIUserPassword = "******"; //PBIWorkspaceId = "5f13b48f-bc94-42a0-b7d1-cccf40303ed8"; }
public CustomerDbContext(ICustomerDbInfo customerDbInfo) { var printingBIDbContextFactory = new PrintingBIDbContextFactory(); Context = printingBIDbContextFactory.Create(customerDbInfo.GetCustomerDbConnectionString()); }