protected override void AdditionalSetup() { base.AdditionalSetup(); AppRepository = MockHelper.CreateAndRegisterMock <IAppRepository>(); BandRepository = MockHelper.CreateAndRegisterMock <IBandRepository>(); }
protected override void AdditionalSetup() { base.AdditionalSetup(); VideoAdapter = MockHelper.CreateAndRegisterMock <IVideoAdapter>(); Process = new VideoProcess(CatalogsContainer); }
protected override void AdditionalSetup() { base.AdditionalSetup(); BandIdResolver = MockHelper.CreateAndRegisterMock <IBandIdResolver>(); BandIdResolver .Expect(resolver => resolver.GetBandId()) .Return(Guid.NewGuid()) .Repeat.Any(); BandIdResolver.Replay(); BandIdInstaller = MockHelper.CreateAndRegisterMock <IBandIdInstaller>(); AudioAdapterSettingsMapper = MockHelper.CreateAndRegisterMock <IAudioAdapterSettingsMapper>(); BandMapper = MockHelper.CreateAndRegisterMock <IBandMapper>(); BlogArticleMapper = MockHelper.CreateAndRegisterMock <IBlogArticleMapper>(); PerformanceMapper = MockHelper.CreateAndRegisterMock <IPerformanceMapper>(); PhotoAdapterSettingsMapper = MockHelper.CreateAndRegisterMock <IPhotoAdapterSettingsMapper>(); VideoAdapterSettingsMapper = MockHelper.CreateAndRegisterMock <IVideoAdapterSettingsMapper>(); AudioProcess = MockHelper.CreateAndRegisterMock <IAudioProcess>(); BandProcess = MockHelper.CreateAndRegisterMock <IBandProcess>(); BlogProcess = MockHelper.CreateAndRegisterMock <IBlogProcess>(); UserProcess = MockHelper.CreateAndRegisterMock <IUserProcess>(); PerformanceProcess = MockHelper.CreateAndRegisterMock <IPerformanceProcess>(); PhotoProcess = MockHelper.CreateAndRegisterMock <IPhotoProcess>(); VideoProcess = MockHelper.CreateAndRegisterMock <IVideoProcess>(); }
protected override void AdditionalSetup() { base.AdditionalSetup(); BandProcess = MockHelper.CreateAndRegisterMock <IBandProcess>(); UserProcess = MockHelper.CreateAndRegisterMock <IUserProcess>(); UserMapper = MockHelper.CreateAndRegisterMock <IUserMapper>(); CryptographyProcess = MockHelper.CreateAndRegisterMock <ICryptographyProcess>(); CustomMembershipProvider = new CustomMembershipProvider(); }
protected override void AdditionalSetup() { base.AdditionalSetup(); AudioProcess = MockHelper.CreateAndRegisterMock <IAudioProcess>(); BandProcess = MockHelper.CreateAndRegisterMock <IBandProcess>(); BlogProcess = MockHelper.CreateAndRegisterMock <IBlogProcess>(); UserProcess = MockHelper.CreateAndRegisterMock <IUserProcess>(); PerformanceProcess = MockHelper.CreateAndRegisterMock <IPerformanceProcess>(); PhotoProcess = MockHelper.CreateAndRegisterMock <IPhotoProcess>(); VideoProcess = MockHelper.CreateAndRegisterMock <IVideoProcess>(); }
protected override void AdditionalSetup() { base.AdditionalSetup(); _container = new BandIdContainer(Guid.NewGuid()); MockHelper.RegisterInstance <IBandIdResolver>(_container); MockHelper.RegisterInstance <IBandIdInstaller>(_container); AppCatalog = MockHelper.CreateAndRegisterMock <IAppCatalog>(); BandCatalog = MockHelper.CreateAndRegisterMock <IBandCatalog>(); CatalogsContainer = MockHelper.CreateAndRegisterMock <ICatalogsContainer>(); CatalogsContainer .Expect(container => container.AppCatalog) .Return(AppCatalog) .Repeat.Any(); CatalogsContainer .Expect(container => container.BandCatalog) .Return(BandCatalog) .Repeat.Any(); CatalogsContainer.Replay(); }