private void AssertAdverseEventsAnalyticsViewModel(AdverseEventsAnalyticsViewModel data, string clinic, string doctor, Race race, Gender sex, AdverseEventIntensity intensity, AdverseEventRelanshionship relanshionship, int aeCount, Mock <IVisitRepository> vRepository) { Assert.That(data.ClinicName, Is.EqualTo(clinic)); Assert.That(data.DoctorName, Is.EqualTo(doctor)); Assert.That(data.Race, Is.EqualTo(EnumHelper.GetDescription(race))); Assert.That(data.Gender, Is.EqualTo(EnumHelper.GetDescription(sex))); Assert.That(data.Intensity, Is.EqualTo(EnumHelper.GetDescription(intensity))); Assert.That(data.RelationshipToInvestigationalDrug, Is.EqualTo(EnumHelper.GetDescription(relanshionship))); Assert.That(data.AesCount, Is.EqualTo(aeCount)); vRepository.Verify(r => r.GetAeAnalyticsData(), Times.Once()); }
private void AssertAdverseEventsAnalyticsViewModel(AdverseEventsAnalyticsViewModel data, string clinic, string doctor, Race race, Gender sex, AdverseEventIntensity intensity, AdverseEventRelanshionship relanshionship, int aeCount, Mock<IVisitRepository> vRepository) { Assert.That(data.ClinicName, Is.EqualTo(clinic)); Assert.That(data.DoctorName, Is.EqualTo(doctor)); Assert.That(data.Race, Is.EqualTo(EnumHelper.GetDescription(race))); Assert.That(data.Gender, Is.EqualTo(EnumHelper.GetDescription(sex))); Assert.That(data.Intensity, Is.EqualTo(EnumHelper.GetDescription(intensity))); Assert.That(data.RelationshipToInvestigationalDrug, Is.EqualTo(EnumHelper.GetDescription(relanshionship))); Assert.That(data.AesCount, Is.EqualTo(aeCount)); vRepository.Verify(r => r.GetAeAnalyticsData(), Times.Once()); }