示例#1
0
        public void ConstructorWithParameters()
        {
            var id = Guid.NewGuid();
            var identifierQuery = new EntityIdentifierQuery <Guid, LocationReadModel>(MockPrincipal.Default, id);

            identifierQuery.Should().NotBeNull();

            identifierQuery.Id.Should().NotBe(Guid.Empty);
            identifierQuery.Id.Should().Be(id);

            identifierQuery.Principal.Should().NotBeNull();
        }
示例#2
0
        public void ConstructorNull()
        {
            var identifierQuery = new EntityIdentifierQuery <Guid, LocationReadModel>(null, Guid.Empty);

            identifierQuery.Should().NotBeNull();
        }