public void BeforeEachTest() { DefaultProfile = new Profile() { FirstName = "Erik", LastName = "Dietrich" }; Searcher = Mock.Create<IProfileSearcher>(); var profiles = new List<Profile>() { DefaultProfile }; Searcher.Arrange(searcher => searcher.GetProfilesForLocationByTechnology(DefaultLocation, DefaultLanguage)).Returns(profiles); Target = new HomeController(new PasswordRetriever(), Searcher); }
public void BeforeEachTest() { Target = new ProfileEvaluator(); Profile = new Profile(); }