Exemplo n.º 1
0
    public void ShouldInitBucketProvider()
    {
      // arrange
      var processor = new InitProviderMock();

      // act
      processor.InitBucketProvider(new PipelineArgs());

      // assert
      BucketManager.Provider.Name.Should().Be("mock");
    }
Exemplo n.º 2
0
    public void ShouldInitAuthenticationProvider()
    {
      // arrange
      var processor = new InitProviderMock();

      // act
      processor.InitAuthenticationProvider(new PipelineArgs());

      // assert
      AuthenticationManager.Provider.Name.Should().Be("mock");
      AuthenticationManager.Provider.GetActiveUser().Name.Should().Be(@"sitecore\Anonymous");
    }