I am trying to declare and initialize an empty IEnumerable in a Moq statement. For some reason the last part where I try to declare ProductResult as Enumerable is failing. Can i do this inline with Moq statement?
mock.Setup(b => b.GetProductStatus(It.IsAny<bool>())).Returns(new List<ProductResult>().AsEnumerable() { });
Trying to research this article:
IEnumerable<object> a = new IEnumerable<object>(); Can I do this?