public TableauRestServiceTests() { Options = MockEnvironment.TableauSignInOptions().Object; TableauTenantFinder = MockEnvironment.TableauTenantFinder().Object; var tableauAdminCredentials = MockEnvironment.TableauAdminCredentials().Object; TableauAdminCredentials = new TableauAdminCredentials { Username = tableauAdminCredentials.UserName, Password = tableauAdminCredentials.Password }; TableauUserCredentials = MockEnvironment.TableauUserCredentials().Object; Logger = MockEnvironment.CreateTestLogger(); }
public void WhenGivenNullDbContextThrowException() { Assert.ThrowsException <ArgumentNullException>(() => new HomeController(null, null, MockEnvironment.CreateTestLogger())); }