Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
 public void WhenGivenNullDbContextThrowException()
 {
     Assert.ThrowsException <ArgumentNullException>(() => new HomeController(null, null, MockEnvironment.CreateTestLogger()));
 }