Hi You might be interested n testing when you do something concrete. Mocking is nice to mock (external) service or interaction if you like so. A small example to illustrate, think about this feature for shipping an order: given that the buyer has given a valid email when the order is shipped then a confirmation email should be send. How would you check that you send the email? you might use an ISendEmail-interface. with a mock you can check your interaction with the service and RhinoMock can help you to do that. Now you add the requirement that you need to confirm the payment before shipping, ie: given that the buyer has given a valid email and that the paiement is confirmed when the order is shipped then a confirmation email should be send. Now you need that your IConfirmPaiement-service returns true in order to check that the mail is send. You can use RhinoMock to fake your service and make it return the value you need.
I hope this respond to your question :-) Dom On 13 Okt, 22:22, Laksh <[email protected]> wrote: > How & what to test in class properties using Rhino Mocks. I have the > following Interface but im not sure how & what to test in this > IContext ? can someone help me > > public interface IContext > { > int BatchID { get; set; } > > Document[] InputDocuments { get; set; } > > Document[] ConvertedDocuments { get; set; } > > Document PackagedDocument { get; set; } > } > > public class Document > { > public Stream DocumentStream { get; set; } > public DocumentType UserDocumentType { get; set; } > } -- You received this message because you are subscribed to the Google Groups "Rhino.Mocks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rhinomocks?hl=en.
