public void KitchenSinkEquivalence() { var innerArray = new[] { "bar", "baz" }; var response1 = new KitchenRequestDto { Sink = new KitchenSinkDto { Matrix = new[] { new[] { new[] { 1, 2 }, new[] { 3, 4 } }, new[] { new[] { 5, 6 }, new[] { 7, 8 } } }, Crazy = new[] { ServiceResult.Success <IReadOnlyList <IReadOnlyDictionary <string, IReadOnlyList <string> > > >(new[] { (IReadOnlyDictionary <string, IReadOnlyList <string> >) new Dictionary <string, IReadOnlyList <string> > { ["foo"] = innerArray }, }), }, }, }; var response2 = ServiceDataUtility.Clone(response1); ServiceDataUtility.AreEquivalentFieldValues(response1, response2).Should().BeTrue(); innerArray[1] = "xyzzy"; ServiceDataUtility.AreEquivalentFieldValues(response1, response2).Should().BeFalse(); }
public Task <ServiceResult <KitchenResponseDto> > KitchenAsync(KitchenRequestDto request, CancellationToken cancellationToken) { return(TrySendRequestAsync(ExampleApiHttpMapping.KitchenMapping, request, cancellationToken)); }