I have a class
public class GetDashboardStatisticsResult
{
public GetPublicationStatisticsResult Publications { get; set; }
public GetSwitchboardStatisticsResult Switchboard { get; set; }
}
Which I use in my test like this
public async Task Should_return_correct_statistics([Frozen] GetDashboardStatisticsResult expectedResult);
And I wonder if there is there a way to freeze GetDashboardStatisticsResult
together with its properties?
So at the end we have three types frozen - GetDashboardStatisticsResult
, GetPublicationStatisticsResult
and GetSwitchboardStatisticsResult
?