Ejemplo n.º 1
0
        public void Spaces_DelegatesToStorageStrategy()
        {
            var fakeStorageStrategy = new FakeStorageStrategy();

            _server.Configure(x => { x.StorageStrategy = fakeStorageStrategy; });

            _server.Spaces.GetOrAdd("1");

            Assert.That(fakeStorageStrategy.LastRequestedId, Is.EqualTo("1"));
        }
Ejemplo n.º 2
0
        public void Configure_HandsClientActiveConfigurationToManipulate()
        {
            var server = new EpigramServer();

            EpigramConfiguration activeConfiguration = null;

            server.Configure(x => activeConfiguration = x);

            Assert.That(activeConfiguration, Is.Not.Null);
        }