public void DropboxSourceCallbackHandler_Ctor_NullParam3() { //------------Setup for test-------------------------- var env = new Mock<IEnvironmentRepository>(); var dropboxSourceCallbackHandler = new DropBoxSourceSourceCallbackHandler(env.Object, "bob", null); }
public void DropboxSourceCallbackHandler_Ctor_AssertValuesAreSet_() { //------------Setup for test-------------------------- var env = new Mock<IEnvironmentRepository>(); var dropboxSourceCallbackHandler = new DropBoxSourceSourceCallbackHandler(env.Object,"bob","dave"); //------------Execute Test--------------------------- Assert.AreEqual(dropboxSourceCallbackHandler.Token,"bob"); Assert.AreEqual(dropboxSourceCallbackHandler.Secret,"dave"); Assert.AreEqual(dropboxSourceCallbackHandler.CurrentEnvironmentRepository,env.Object); //------------Assert Results------------------------- }