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")); }
public void Configure_HandsClientActiveConfigurationToManipulate() { var server = new EpigramServer(); EpigramConfiguration activeConfiguration = null; server.Configure(x => activeConfiguration = x); Assert.That(activeConfiguration, Is.Not.Null); }