Пример #1
0
        public void ToString_ThenFetch()
        {
            var cookMember        = typeof(Kitchen).GetProperty("Cook");
            var outerFetchRequest = new TestFetchRequest(cookMember);

            outerFetchRequest.GetOrAddInnerFetchRequest(_assistantsFetchRequest);

            var result = outerFetchRequest.ToString();

            Assert.That(result, Is.EqualTo("Fetch (Kitchen.Cook).ThenFetch (Cook.Assistants)"));
        }
Пример #2
0
        public new void ToString()
        {
            var result = _assistantsFetchRequest.ToString();

            Assert.That(result, Is.EqualTo("Fetch (Cook.Assistants)"));
        }