示例#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");
        }
 protected override ICache CreateCacheImplementation(string name)
 {
     return(ScopeResolver.Resolve <StoveMemoryCache>(new { name }));
 }
示例#3
0
 public void should_resolve_Cors()
 {
     _scopeResolver.IsSingleInstance <Cors>();
     _scopeResolver.Resolve <Cors>().Enabled.Should().BeTrue();
 }