public void Cascade_should_be_fluent()
 {
     var oneToManyPart = new OneToManyPart<Artist, Album>(null);
     var attributeStore = new AttributeStore<ICollectionMapping>();
     var cascadePart = new CollectionCascadePart<OneToManyPart<Artist, Album>>(oneToManyPart, attributeStore);
     cascadePart.All().ShouldEqual(oneToManyPart);
 }
        public void Can_set_cascade_all()
        {
            var attributeStore = new AttributeStore<ICollectionMapping>();
            var cascadePart = new CollectionCascadePart<OneToManyPart<Artist, Album>>(null, attributeStore);
            cascadePart.All();

            attributeStore.Get(x => x.Cascade).ShouldEqual(CollectionCascadeType.All);
        }