public void UnRegisterNotRegistered()
        {
            Mock <IApplicationManager>   applicationManager = new Mock <IApplicationManager>();
            ProviderRegistry <IProvider> test     = new ProviderRegistry <IProvider>(applicationManager.Object);
            Mock <IProvider>             provider = new Mock <IProvider>();

            Result result = test.UnRegister(provider.Object);

            Assert.Equal(ResultCode.Failure, result.ResultCode);
        }
        public void UnRegister()
        {
            Mock <IApplicationManager>   applicationManager = new Mock <IApplicationManager>();
            ProviderRegistry <IProvider> test     = new ProviderRegistry <IProvider>(applicationManager.Object);
            Mock <IProvider>             provider = new Mock <IProvider>();

            test.Register(provider.Object);

            Assert.NotEmpty(test.Providers);

            Result result = test.UnRegister(provider.Object);

            Assert.Equal(ResultCode.Success, result.ResultCode);
            Assert.Empty(test.Providers);
        }