private void AddAuthenArguments(ConsoleAppBaseMocked mocked) { mocked.SetNoSqlContext(null); mocked.AddArgument("bucket", Environment.GetEnvironmentVariable("ONIX_FIREBASE_BUCKET")); mocked.AddArgument("host", Environment.GetEnvironmentVariable("ONIX_FIREBASE_DATABASE")); mocked.AddArgument("key", Environment.GetEnvironmentVariable("ONIX_FIREBASE_KEY")); mocked.AddArgument("user", Environment.GetEnvironmentVariable("ONIX_FIREBASE_USERNAME")); mocked.AddArgument("password", Environment.GetEnvironmentVariable("ONIX_FIREBASE_PASSWORD")); }
public void SetterAndGetterTest(string provider) { ConsoleAppBaseMocked mocked = new ConsoleAppBaseMocked(provider); AddAuthenArguments(mocked); mocked.SetNoSqlContext(null); mocked.SetStorageContext(null); mocked.SetLogger(null); mocked.DumpParameter(); var args = mocked.GetArguments(); Assert.AreEqual(5, args.Count, "Argument count should match!!!"); Assert.AreEqual(null, mocked.GetNoSqlContext(), "Returned context must be null!!!"); Assert.AreEqual(null, mocked.GetStorageContext(), "Returned context must be null!!!"); Assert.AreEqual(null, mocked.GetLogger(), "Returned context must be null!!!"); }