Example #1
0
        public void GetQuery_Returns_Query_From_Base_Repository_Class_Protected()
        {
            const string expected = "QueryTestProtected";

            var configMock = new Mock <IRepositoryConfiguration>();

            var repo = new Repository1(configMock.Object);

            var result = repo.QueryTestProtected_Test();

            Assert.AreEqual(expected, result);
        }
Example #2
0
        public void GetQuery_Returns_Query_From_Ancestor_Even_With_Overload()
        {
            const string expected = "QueryTest";

            var configMock = new Mock <IRepositoryConfiguration>();

            var repo = new Repository1(configMock.Object);

            var result = repo.QueryTest("something");

            Assert.AreEqual(expected, result);
        }