public void Test_Build_Sets_Default_Route_Actions()
        {
            var p          = new TestParams();
            var parameters = builder
                             .Default(route => route.SetViewModel(typeof(TestViewModel)), p)
                             .Build();

            parameters.DefaultViewModelType.Should().Be(typeof(TestViewModel));
            parameters.DefaultParameters.Should().Be(p);
        }
        public async Task Test_Activated_Resolves_After_Init_Is_Called()
        {
            var obj   = new TestActivatableObject();
            var first = new TestParams();
            List <TestParams> recievedParams = new List <TestParams>();

            obj.OnActivated.Subscribe(p => recievedParams.Add(p));
            await obj.InitAsync(first);

            Assert.Collection(recievedParams,
                              p => p.Should().Be(first));
        }