protected override void beforeEach() { theCookieValue = CookieFlashProvider.ToBase64String("{\"Name\":\"Joel\"}"); theOutputWriter = new RecordingOutputWriter(); Services.Inject <IOutputWriter>(theOutputWriter); MockFor <ICookies>().Stub(x => x.Has(CookieFlashProvider.FlashKey)).Return(true); MockFor <ICookies>().Stub(x => x.GetValue(CookieFlashProvider.FlashKey)).Return(theCookieValue); theTarget = ClassUnderTest.Retrieve <FlashTarget>(); }
protected bool Equals(FlashTarget other) { return(string.Equals(Name, other.Name)); }