CA-180128: Fix the tests after adding a call to task.remove_from_other_config in the async action

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
This commit is contained in:
Mihaela Stoica 2015-10-23 12:02:21 +01:00
parent 1589f53ac6
commit f13086bf56

View File

@ -72,6 +72,10 @@ namespace XenAdminTests.XenModelTests
x => x =>
x.task_add_to_other_config(It.IsAny<string>(), It.IsAny<string>(), It.IsAny<string>(), x.task_add_to_other_config(It.IsAny<string>(), It.IsAny<string>(), It.IsAny<string>(),
It.IsAny<string>())).Returns(new Response<string>(string.Empty)); It.IsAny<string>())).Returns(new Response<string>(string.Empty));
mockProxy.Setup(
x =>
x.task_remove_from_other_config(It.IsAny<string>(), It.IsAny<string>(),
It.IsAny<string>())).Returns(new Response<string>(string.Empty));
mockProxy.Setup(x => x.task_get_record(It.IsAny<string>(), It.IsAny<string>())).Returns( mockProxy.Setup(x => x.task_get_record(It.IsAny<string>(), It.IsAny<string>())).Returns(
new Response<Proxy_Task>(new Proxy_Task() new Response<Proxy_Task>(new Proxy_Task()
{ {