public void CreateValidAdministratorTest()
        {
            var administrator = new Administrator();

            administrator.IdentityNumber = "11111111";
            administrator.LastName       = "LastName";
            administrator.Name           = "Name";
            administrator.Password       = "******";
            administrator.UserName       = "******";
            List <Administrator> administrators = new List <Administrator>();

            administrators.Add(administrator);

            var mock = new Mock <IUnitOfWork>(MockBehavior.Strict);

            mock.Setup(m => m.AdministratorRepository.Create(It.IsAny <Administrator>()));
            mock.Setup(m => m.AdministratorRepository.Save());
            mock.Setup(m => m.AdministratorRepository.Get(null, null, null)).Returns(administrators);
            var administratorLogic = new ST.BusinessLogic.AdministratorService(mock.Object);

            administratorLogic.CreateAdministrator(administrator);
            var result = (Administrator)administratorLogic.GetAdminById(administrator.Id);

            mock.VerifyAll();
            Assert.AreEqual(result, administrator);
        }
        public void GetAdminByIdInvalidTest()
        {
            var administrator = new Administrator();
            List <Administrator> administrators = new List <Administrator>();

            administrators.Add(administrator);

            var mock = new Mock <IUnitOfWork>(MockBehavior.Strict);

            mock.Setup(m => m.AdministratorRepository.Create(It.IsAny <Administrator>()));
            mock.Setup(m => m.AdministratorRepository.Save());
            mock.Setup(m => m.AdministratorRepository.Get(null, null, null)).Returns(administrators);
            var administratorLogic = new ST.BusinessLogic.AdministratorService(mock.Object);

            administratorLogic.CreateAdministrator(administrator);
            var result = (Administrator)administratorLogic.GetAdminById(Guid.NewGuid());

            mock.VerifyAll();
            Assert.AreEqual(administrator.Id, result.Id);
        }