SetStore() public static method

Sets a default IWebHookStore implementation which is used if none are registered with the Dependency Injection engine.
public static SetStore ( IWebHookStore instance ) : void
instance IWebHookStore The to use. If null then a default implementation is used.
return void
        public void SetStore_GetStore_Roundtrips()
        {
            // Arrange
            Mock <IWebHookStore> storeMock = new Mock <IWebHookStore>();

            // Act
            CustomServices.SetStore(storeMock.Object);
            IWebHookStore actual = CustomServices.GetStore();

            // Assert
            Assert.Same(storeMock.Object, actual);
        }