public void GetServiceLocator_WithCustomConstructor_ShouldReturnServiceLocator() { var expected = A.Fake <IServiceLocator>(); XMVVMWebApplication application = new XMVVMWebApplication(expected); application.ServiceLocator.Should().Be(expected); }
public void GetServiceLocator_WithDefaultConstructor_ShouldReturnStaticServiceLocator() { var expected = A.Fake <IServiceLocator>(); ServiceLocator.SetLocatorProvider(() => expected); XMVVMWebApplication application = new XMVVMWebApplication(); application.ServiceLocator.Should().Be(expected); }
public void Constructor_ToEnsureExpressAppCompability_ShouldBeXafApplication() { WebApplication application = new XMVVMWebApplication(A.Fake <IServiceLocator>()); application.Should().BeAssignableTo <WebApplication>(); }