protected override void EstablishContext() { base.EstablishContext(); var photoProcessorResponse = new PhotoProcessorResponse { SuccessfullyProcessedPhotos = 20, TotalRecords = 30 }; photoProcessorResponse.ErrorMessages.Add("Error 1"); photoProcessorResponse.ErrorMessages.Add("Error 2"); Expect.Call(photoProcessor.Process(null)).IgnoreArguments().Return(photoProcessorResponse).Repeat.Once(); }
protected override void ExecuteTest() { var photoProcessorRequest = new PhotoProcessorRequest { FileBytes = new byte[] { 1, 2, 3 } }; photoProcessorResponse = photoProcessor.Process(photoProcessorRequest); }