public void Setup() { _frontManagerSetter = new FrontManagerSetter(); MockMemberRepository = new Mock <IMemberRepository>(); PlaygroundTestContext.SetupRepositoryWithData <Member>(MockMemberRepository.As <IRepository <Member> >(), PlaygroundTestContext.Members); _frontManagerSetter.InitFrontManager(MockMemberRepository, null); }
public void Setup() { _frontManagerSetter = new FrontManagerSetter(); MockPhotoRepository = new Mock <IPhotoRepository>(); PlaygroundTestContext.SetupRepositoryWithData <Photo>(MockPhotoRepository.As <IRepository <Photo> >(), PlaygroundTestContext.Photos); _frontManagerSetter.InitFrontManager(null, MockPhotoRepository); }