コード例 #1
0
        public void ShouldReturnNullWhenNotApplyAttribute()
        {
            var resolver = new CollectionNameAttributeResolver <NotHaveCollectionAttribute>();

            var collectionName = resolver.ResolveCollectionName();

            collectionName.Should().BeNull();
        }
コード例 #2
0
        public void ShouldReturnAttributeValueWhenClassApplyAttribute()
        {
            var resolver = new CollectionNameAttributeResolver <HasCollectionAttribute>();

            var collectionName = resolver.ResolveCollectionName();

            collectionName.Should().BeEquivalentTo("test");
        }