public void TearDown()
 {
     this.stream = null;
     this.service = null;
     this.validators = null;
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CreatePostCommand"/> class.
 /// </summary>
 /// <param name="stream">
 /// The stream.
 /// </param>
 /// <param name="service">
 /// The service.
 /// </param>
 /// <param name="validators">
 /// The validators.
 /// </param>
 public CreatePostCommand(IEventStream stream, IPostService service, IProvidePostValidators validators)
 {
     this.stream = stream;
     this.service = service;
     this.validators = validators;
 }
 public void Setup()
 {
     this.stream = A.Fake<IEventStream>();
     this.service = A.Fake<IPostService>();
     this.validators = A.Fake<IProvidePostValidators>();
 }