I want to fake my complex object (an object with 5 objects properties) to test the post
method in the controller.
When I use FakeItEasy, I get the object with null
s, and I can't insert the object to the DbContext.
So how can I fake this? Manually?
My Computer DTO:
public class Computer
{
public long Id { get; set; }
public Processor processor { get; set; }
public ICollection<Memory> memories { get; set; }
public ICollection<Disk> disks { get; set; }
public MotherBoard motherBoard { get; set; }
public ICollection<GPU> gpus { get; set; }
}