I'm working on an ASP.NET MVC app using .NET Framework 4.6.1 in Visual Studio 2015 Update 3. I'm planning to use the Faker.Data library (https://github.com/FermJacob/Faker.Data) to produce fake data for debug mode in development; it might be some time before I have real data which will reside in SQL Server.
I need to have the views use this fake data in debug mode. Is it possible to use something like this in the cshtml
view file to switch the data?
#if DEBUG
// Point to fake data for this view
#else
// Point to release data for this view
#endif
The view currently has this statement at the top to provide a strongly-typed model:
@model MyProject.DAL.Customer
Thanks.