Example #1
0
        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));
        }
Example #2
0
 public StubPupilRepository(IRepositoryLocator repoLocator)
 {
     this.pupils      = PupilHelpers.InitializeStub();
     this.repoLocator = repoLocator;
 }