示例#1
0
        public void ClientFactory_Create_ThrowsWhenSettingsIsNull()
        {
            var factory = new ClientFactory();

            Assert.Throws <ArgumentNullException>(() => factory.Create(null));
        }
示例#2
0
        public void ClientFactory_Create_ThrowsWhenSettingsNameIsNotValid()
        {
            var factory = new ClientFactory();

            Assert.Throws <ArgumentException>(() => factory.Create(new ClientSettings()));
        }
 public ClientConfiguration(ILogger logger, IPreferences preferences, ClientFactory clientFactory)
     : this(logger, preferences, clientFactory, ClientScheduledTasks.Factory)
 {
 }