public void ItShouldGetTheAPIKeyFromTheConfigFile() { IAPI api = mocks.StrictMock<IAPI>(); api.APIKey = "A key"; IConfigurator conf = new DefaultConfigurator(); mocks.ReplayAll(); conf.Configure(api); mocks.VerifyAll(); }
public void ItShouldThrowAnExceptionIfTheAPIObjectIsNull() { IConfigurator conf = new DefaultConfigurator(); conf.Configure(null); }