public void Populates_ProjectViewModel_ModuleNames_With_Values_From_Repository() { const string moduleName = "fdsa"; ModuleRepository.Arrange(mr => mr.GetAllForProject(Arg.AnyString)).Returns(new List <Module>() { new Module() { Name = moduleName } }); Target.LoadProject("34234li"); Assert.AreEqual <string>(moduleName, Target.ProjectViewModel.Modules.First().Name); }