public CompetentAuthorityEmailAddressAttributeTests()
 {
     dependencyResolver = A.Fake<IDependencyResolver>();
     A.CallTo(() => dependencyResolver.GetService(typeof(AppConfiguration))).Returns(
         new AppConfiguration()
         {
             Environment = "LIVE"
         });
     DependencyResolver.SetResolver(dependencyResolver);
     viewModel = new TestViewModel();
 }
Пример #2
0
 public TestViewModel()
 {
     Console.WriteLine("Constructing TestViewModel");
     Instance = this;
 }