Ejemplo 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");
        }
Ejemplo n.º 2
0
 public void should_resolve_TimeTrackService()
 {
     _scopeResolver.IsSingleInstance <TimeTrackService>();
 }
Ejemplo n.º 3
0
 public void should_resolve_IReadConnectionFactory()
 {
     _scopeResolver.IsSingleInstance <IReadConnectionFactory, ReadConnectionFactory>();
 }
Ejemplo n.º 4
0
 public void should_resolve_IConnectionFactory()
 {
     _scopeResolver.IsSingleInstance <IWriteConnectionFactory, WriteConnectionFactory>();
 }
Ejemplo n.º 5
0
 public void should_resolve_ICaseConverter()
 {
     _scopeResolver.IsSingleInstance <ICaseConverter, CaseConverter>();
 }
Ejemplo n.º 6
0
 public void should_resolve_IWriteRepository()
 {
     _scopeResolver.IsSingleInstance <IEventStore, EventStore>();
 }
Ejemplo n.º 7
0
 public void should_resolve_Serializer()
 {
     _scopeResolver.IsSingleInstance <ISerializer, Serializer>();
 }
Ejemplo n.º 8
0
 public void should_resolve_Migrator()
 {
     _scopeResolver.IsSingleInstance <Migrator>();
 }
Ejemplo n.º 9
0
 public void should_resolve_CountryProvider()
 {
     _scopeResolver.IsSingleInstance <ICountryProvider, CountryProvider>();
 }
Ejemplo n.º 10
0
 public void should_resolve_Cors()
 {
     _scopeResolver.IsSingleInstance <Cors>();
     _scopeResolver.Resolve <Cors>().Enabled.Should().BeTrue();
 }
Ejemplo n.º 11
0
 public void should_resolve_ITimeTrackReadRepository()
 {
     _scopeResolver.IsSingleInstance <ITimeTrackReadRepository, TimeTrackReadRepository>();
 }