diff --git a/WF_EF_Api/StubbedContextLib/StubWTFContext.cs b/WF_EF_Api/StubbedContextLib/StubWTFContext.cs index a5f5228..29e5661 100644 --- a/WF_EF_Api/StubbedContextLib/StubWTFContext.cs +++ b/WF_EF_Api/StubbedContextLib/StubWTFContext.cs @@ -143,7 +143,11 @@ namespace StubbedContextLib { if (!options.IsConfigured) { - options.UseSqlServer(@"Server=(WhatTheFantasy-wtf-api)\mssqllocaldb;Database=Wf-Database.mdf;Trusted_Connection=True;"); + options.UseSqlServer( + $"Server={Environment.GetEnvironmentVariable("DB_SERVER_AUTH")};" + + $"Database={Environment.GetEnvironmentVariable("DB_DATABASE_AUTH")};" + + $"User Id={Environment.GetEnvironmentVariable("DB_USER_AUTH")};" + + $"Password={Environment.GetEnvironmentVariable("DB_PASSWORD_AUTH")};"); //options.UseSqlServer(@"Server=(localdb)\mssqllocaldb;Database=Wf-Database.mdf;Trusted_Connection=True;"); } }