Пример #1
0
 public virtual void ShouldCallAppropriateSpecificationMethod()
 {
     var spec = Substitute.For<ISpecification>();
     var customer = new Customer(SeqGuid.NewGuid(), new FullName("Test", "Test"));
     customer.Satisfies(spec);
     spec.Received(1).IsSatisfiedBy(customer);
 }