public void Initialize() { _context = new FakeSREDContext(); _projectEntryRepository = new ProjectEntryRepository(_context); _context.ProjectEntries = new FakeProjectEntry { _random.CreateRandomProjectEntry("I made an entry!"), _random.CreateRandomProjectEntry("Water physics."), _random.CreateRandomProjectEntry("Fire."), _random.CreateRandomProjectEntry("Invented a new AI."), _random.CreateRandomProjectEntry("Added charisma to NPC.") }; }
public void Initialize() { _context = new FakeSREDContext(); _context.Employees = new FakeEmployee { _random.createRandomEmployee(), _random.createRandomEmployee(), _random.createRandomEmployee(), _random.createRandomEmployee(), _random.createRandomEmployee() }; _employeeRepository = new EmployeeRepository(_context); HttpContext.Current = FakeHttpContext.CreateFakeContext(); }