public void Load() { string newName1 = "test"; string newName2 = "test2"; int newSize = 20; MockPersistence mockPersistence = new MockPersistence { MockData = new SaveData { Group1Name = newName1, Group2Name = newName2, Participants = Enumerable.Repeat <UnitSave>(null, newSize).ToList() } }; NewModel(); _context.Persistence = mockPersistence; _context.Persistence.Load(""); _model.Load(); Assert.AreEqual(newName1, _context.Group1Name); Assert.AreEqual(newName2, _context.Group2Name); Assert.AreEqual(newSize, _context.TotalSize); }