// ReSharper disable TooManyDependencies
 public DropBoxSourceViewModel(INetworkHelper network, IDropBoxHelper dropboxHelper, IDropboxFactory dropboxFactory, bool shouldAuthorise)
     // ReSharper restore TooManyDependencies
 {
     VerifyArgument.AreNotNull(new Dictionary<string, object> { { "network", network }, { "dropboxHelper", dropboxHelper }, { "dropboxFactory",dropboxFactory } });
     _network = network;
     _dropboxFactory = dropboxFactory;
     DropBoxHelper = dropboxHelper;
     CookieHelper.Clear();
     if(shouldAuthorise)
     Authorise();
 }
예제 #2
0
 // ReSharper disable TooManyDependencies
 public DropBoxSourceViewModel(INetworkHelper network, IDropBoxHelper dropboxHelper, IDropboxFactory dropboxFactory, bool shouldAuthorise)
 // ReSharper restore TooManyDependencies
 {
     VerifyArgument.AreNotNull(new Dictionary <string, object> {
         { "network", network }, { "dropboxHelper", dropboxHelper }, { "dropboxFactory", dropboxFactory }
     });
     _network        = network;
     _dropboxFactory = dropboxFactory;
     DropBoxHelper   = dropboxHelper;
     CookieHelper.Clear();
     if (shouldAuthorise)
     {
         Authorise();
     }
 }