For my test, I need the first call to the stub to return one object, and the next call to return another object. I saw this in other object mockups in record () blocks, but I did not understand how to do this in FakeItEasy. FakeItEasy is the credential structure in our store, and I use AutoFixture to create fakes.
I looked at NextCall, but it doesn't seem like I can specify a return value.
Here is an idea of ββwhat I would like to do:
ReceiveMessageResponse queueResponse1 = fixture.Create<ReceiveMessageResponse>(); ReceiveMessageResponse queueResponse2 = fixture.Create<ReceiveMessageResponse>(seed); A.CallTo(() => sqsClient.ReceiveMessage(null)).WithAnyArguments().Returns(queueResponse1);
Any help is appreciated.
unit-testing fakeiteasy
Cork
source share