Пример #1
0
        public ContainerTests()
        {
            _container = new Container(_ =>
            {
                _.IncludeRegistry <CrispinRestRegistry>();
                _.IncludeRegistry <MediatrRegistry>();

                _.For(typeof(ILogger <>)).Use(typeof(FakeLogger <>));
                _.For <IStorage>().Use(StorageBuilder.Configure(new InMemoryStorage()));
            });
        }