public void DsfDataOBject_IsRemoteWorkflow_WhenOverrideNotSet_ExpectTrue() { //------------Setup for test-------------------------- IDSFDataObject dataObject = new DsfDataObject(string.Empty, Guid.NewGuid()); dataObject.EnvironmentID = Guid.NewGuid(); //------------Execute Test--------------------------- var result = dataObject.IsRemoteWorkflow(); //------------Assert Results------------------------- Assert.IsTrue(result); }
public void DsfDataOBject_IsRemoteWorkflow_WhenOverrideSetAndEmptyGuid_ExpectFalse() { //------------Setup for test-------------------------- IDSFDataObject dataObject = new DsfDataObject(string.Empty, Guid.NewGuid()); dataObject.EnvironmentID = Guid.Empty; dataObject.IsRemoteInvokeOverridden = true; //------------Execute Test--------------------------- var result = dataObject.IsRemoteWorkflow(); //------------Assert Results------------------------- Assert.IsFalse(result); }