Exemplo n.º 1
0
        public void ViewAppearing_PropertiesSet()
        {
            // Arrange
            var fixture = new Fixture();

            fixture.Customize(new AutoMoqCustomization {
                ConfigureMembers = true
            });
            fixture.Behaviors.Add(new OmitOnRecursionBehavior());

            var vm = new CategoryListViewModel(fixture.Create <ICategoryService>(),
                                               new Mock <IDialogService>().Object,
                                               new Mock <IMvxNavigationService>().Object);

            // Act
            vm.ViewAppearing();

            // Assert
            vm.CategoryList.ShouldNotBeNull();
        }