Exemplo n.º 1
0
        public void ValidateUser_ValidUser3()
        {
            SetMockDbTableConfiguration <Agencies>(MockAgencies.GetAgenciesDBList(), mockAgency);
            SetMockDbTableConfiguration <AgencieUsers>(MockUser.GetListAgencyUserDBModel(), mockUser);
            mockContext.Setup(m => m.Agencies).Returns(mockAgency.Object);
            mockContext.Setup(m => m.AgencyUsers).Returns(mockUser.Object);

            logic = new AgencyUserLogic(mockContext.Object);

            Assert.IsTrue(logic.ValidateUser(MockUser.ValidUsers()[2]).Result);
        }