public void SetUp() { _mockRepository = new MockRepository(); _gymMembershipConfigurationRepository = _mockRepository.StrictMock<IGymMembershipConfigurationRepository>(); _invoicePdfGeneratorRepository = _mockRepository.StrictMock<IInvoicePdfGeneratorRepository>(); _nationalGymRegistrationRepository = _mockRepository.StrictMock<INationalGymRegistrationRepository>(); _gymMembershipRepository = _mockRepository.StrictMock<IGymMembershipRepository>(); _gymMembershipView = _mockRepository.StrictMock<IGymMembershipView>(); }
public GymMembershipPresenter(IGymMembershipConfigurationRepository gymMembershipConfigurationRepository, IInvoicePdfGeneratorRepository invoicePdfGeneratorRepository, INationalGymRegistrationRepository nationalGymRegistrationRepository, IGymMembershipRepository gymMembershipRepository, IGymMembershipView gymMembershipView) { _gymMembershipConfigurationRepository = gymMembershipConfigurationRepository; _invoicePdfGeneratorRepository = invoicePdfGeneratorRepository; _nationalGymRegistrationRepository = nationalGymRegistrationRepository; _gymMembershipRepository = gymMembershipRepository; _gymMembershipView = gymMembershipView; }