private static IProcess DummyProcess() { var product = new DummyType() { Id = 42, Name = "Bob", Foo = 1337, Bobs = new[] { 1, 3, 7, 42, 1337 }, Identity = new ProductIdentity("123456", 01), Part = new ProductPartLink <DummyType>(2) { Product = new DummyType { Identity = new ProductIdentity("654321", 01), Name = "Thomas", Foo = 42 } } }; var process = new ProductionProcess { Id = 42, Recipe = new DummyRecipe { Id = 42, Name = "AwesomeRecipe", OrderNumber = "123321", Product = product, Config = new Dictionary <string, string> { { "Foo", "Blah" } } }, ProductInstance = product.CreateInstance() }; process.ProductInstance.Id = 42; ((DummyInstance)process.ProductInstance).Blah = (float)0.815; return(process); }