public void DsfWebGetRequestActivity_UpdateForEachOutputs_NullUpdates_DoesNothing() { //------------Setup for test-------------------------- const string Url = "[[CompanyName]]"; const string result = "[[res]]"; var act = new DsfWebGetRequestWithTimeoutActivity { Url = Url, Result = result }; act.UpdateForEachOutputs(null); //------------Assert Results------------------------- Assert.AreEqual(result, act.Result); }
public void DsfWebGetRequestActivity_UpdateForEachOutputs_1Updates_UpdateCommandResult() { //------------Setup for test-------------------------- const string Url = "[[CompanyName]]"; const string result = "[[res]]"; var act = new DsfWebGetRequestWithTimeoutActivity { Url = Url, Result = result }; var tuple1 = new Tuple <string, string>("[[res]]", "Test"); //------------Execute Test--------------------------- act.UpdateForEachOutputs(new List <Tuple <string, string> > { tuple1 }); //------------Assert Results------------------------- Assert.AreEqual("Test", act.Result); }
public void DsfWebGetRequestWithTimeoutActivity_UpdateForEachOutputs_MoreThan1Updates_DoesNothing() { //------------Setup for test-------------------------- const string Url = "[[CompanyName]]"; const string result = "[[res]]"; var act = new DsfWebGetRequestWithTimeoutActivity { Url = Url, Result = result }; var tuple1 = new Tuple <string, string>("Test1", "Test1"); var tuple2 = new Tuple <string, string>("Test2", "Test2"); //------------Execute Test--------------------------- act.UpdateForEachOutputs(new List <Tuple <string, string> > { tuple1, tuple2 }); //------------Assert Results------------------------- Assert.AreEqual(result, act.Result); }
public void DsfWebGetRequestActivity_UpdateForEachOutputs_1Updates_UpdateCommandResult() { //------------Setup for test-------------------------- const string Url = "[[CompanyName]]"; const string result = "[[res]]"; var act = new DsfWebGetRequestWithTimeoutActivity { Url = Url, Result = result }; var tuple1 = new Tuple<string, string>("[[res]]", "Test"); //------------Execute Test--------------------------- act.UpdateForEachOutputs(new List<Tuple<string, string>> { tuple1 }); //------------Assert Results------------------------- Assert.AreEqual("Test", act.Result); }