Exemplo n.º 1
0
        public void Projections_MissingImplementation()
        {
            // Arrange
            var componentUnderTest = new SimplePocoQuery <MissingImplementationProjection>();

            // Act
            componentUnderTest.GetList();
        }
Exemplo n.º 2
0
        public void Paged_Projections()
        {
            // Arrange
            var componentUnderTest = new SimplePocoQuery <SimplePocoProjection>();

            // Act
            var actual = componentUnderTest.GetPagedList(0, 1);

            // Assert
            actual.ShouldHaveSameValueAs(new PagedList <SimplePocoProjection>(new[]
            {
                new SimplePocoProjection
                {
                    Value1      = "v1.1",
                    ChildValue1 = "v2.1"
                }
            }));
        }
Exemplo n.º 3
0
        public void Projections()
        {
            // Arrange
            var componentUnderTest = new SimplePocoQuery <SimplePocoProjection>();

            // Act
            var actual = componentUnderTest.GetList();

            // Assert
            actual.ShouldHaveSameValueAs(new []
            {
                new SimplePocoProjection
                {
                    Value1      = "v1.1",
                    ChildValue1 = "v2.1"
                },
                new SimplePocoProjection
                {
                    Value1      = "v3.1",
                    ChildValue1 = "v4.1"
                },
            });
        }