public void Find_no_registration() { RegistrationInPharmacyService service = new RegistrationInPharmacyService(Create_stub_repository()); RegistrationInPharmacy foundRegistration = service.getPharmacyApiKey("apisa99"); foundRegistration.ShouldBeNull(); }
public void Find_registration() { RegistrationInPharmacyService service = new RegistrationInPharmacyService(Create_stub_repository()); RegistrationInPharmacy foundRegistration = service.getPharmacyApiKey("apisa12345"); Assert.NotNull(foundRegistration); }