public void AddUNILogin_Success() { //Arrange var pupilForCreation = PupilHelpers.CreateUNILoginPupil(Guid.NewGuid().ToString()); //Act var newlyCreatedPupil = this.repositoryLocator.PupilRepo.Add(pupilForCreation); //Assert Assert.AreEqual(newlyCreatedPupil, this.repositoryLocator.PupilRepo.Get(d => d.Id == newlyCreatedPupil.Id)); }
public StubPupilRepository(IRepositoryLocator repoLocator) { this.pupils = PupilHelpers.InitializeStub(); this.repoLocator = repoLocator; }