Skip to main content
1 of 2
rams
  • 317
  • 1
  • 3
  • 18

Sitecore.Context.Item is Overwritten by RenderingContext.Current.Rendering

I'm new to Sitecore FakeDb NUnit Testing.While Testing the Code I found that

 Sitecore.Context.Item =null
 RenderingContext.Current.Rendering.DataSource = fakeItem.ID.ToString();

Since the item is passed as Null, the corresponding date source overwrites the value.Is this a Bug or ,Im wrong?

rams
  • 317
  • 1
  • 3
  • 18