Exemplo n.º 1
0
        public void should_resolve_WriteRepositoryConfig()
        {
            _scopeResolver.IsSingleInstance <WriteRepositoryConfig>();
            var resolved = _scopeResolver.Resolve <WriteRepositoryConfig>();

            resolved.ConnectionString.Should().Be("ConnectTo=tcp://admin:changeit@localhost:1113; HeartBeatTimeout=500");
        }
Exemplo n.º 2
0
 protected override ICache CreateCacheImplementation(string name)
 {
     return(ScopeResolver.Resolve <StoveMemoryCache>(new { name }));
 }
Exemplo n.º 3
0
 public void should_resolve_Cors()
 {
     _scopeResolver.IsSingleInstance <Cors>();
     _scopeResolver.Resolve <Cors>().Enabled.Should().BeTrue();
 }