Exemple #1
0
        public void GetServiceLocator_WithCustomConstructor_ShouldReturnServiceLocator()
        {
            var expected = A.Fake <IServiceLocator>();

            XMVVMWinApplication application = new XMVVMWinApplication(expected);

            application.ServiceLocator.Should().Be(expected);
        }
Exemple #2
0
        public void GetServiceLocator_WithDefaultConstructor_ShouldReturnStaticServiceLocator()
        {
            var expected = A.Fake <IServiceLocator>();

            ServiceLocator.SetLocatorProvider(() => expected);

            XMVVMWinApplication application = new XMVVMWinApplication();

            application.ServiceLocator.Should().Be(expected);
        }
Exemple #3
0
        public void Constructor_ToEnsureExpressAppCompability_ShouldBeXafApplication()
        {
            WinApplication application = new XMVVMWinApplication(A.Fake <IServiceLocator>());

            application.Should().BeAssignableTo <WinApplication>();
        }