public void Setup() { server = CreateInMemoryServer(); StoreTestObjects(); assertConnectionFactory = NewFactory(); toTest = new ConnectionPool(assertConnectionFactory.Connect); }
public void ReturnsConnection() { ConnectionPool toTest = new ConnectionPool(NewFactory().Connect); IObjectContainer container = toTest.Acquire(); Assert.NotNull(container); }