public void ShouldReturnNullWhenNotApplyAttribute() { var resolver = new CollectionNameAttributeResolver <NotHaveCollectionAttribute>(); var collectionName = resolver.ResolveCollectionName(); collectionName.Should().BeNull(); }
public void ShouldReturnAttributeValueWhenClassApplyAttribute() { var resolver = new CollectionNameAttributeResolver <HasCollectionAttribute>(); var collectionName = resolver.ResolveCollectionName(); collectionName.Should().BeEquivalentTo("test"); }