// 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(); }
// 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(); } }