public void CleanContext_ContextIsNotEmpty_BecomeEmpty() { // arrange var accessor = new MessagingCallContextAccessor(); // act accessor.CleanContext(); // assert Assert.That(accessor.GetContext(), Is.Null); }
public void SetContext_ContextIsEmpty_SetNewContext() { // arrange var fakeContext = new Mock <ICallContext>(); var accessor = new MessagingCallContextAccessor(); // act accessor.SetContext(fakeContext.Object); // assert Assert.That(accessor.GetContext(), Is.EqualTo(fakeContext.Object)); }