public void ConvertWithNonDistributionSuggestionObject()
        {
            var converter      = new DistributionSuggestionToTextConverter();
            var convertedValue = converter.Convert(new object(), null, null, null);

            Assert.AreEqual("Unknown network resource ...", convertedValue);
        }
        public void ConvertWithDistributionSuggestion()
        {
            var systemDiagnostics = new SystemDiagnostics((p, s) => { }, null);
            var plan = CreateNewDistributionPlan(
                new DatasetActivationProposal(),
                CreateOfflineInfo(new Mock<IPersistenceInformation>().Object),
                systemDiagnostics);

            var model = new DistributionSuggestion(plan);

            var converter = new DistributionSuggestionToTextConverter();
            var convertedValue = converter.Convert(model, null, null, null);
            Assert.AreEqual(plan.MachineToDistributeTo.ToString(), convertedValue);
        }
        public void ConvertWithDistributionSuggestion()
        {
            var systemDiagnostics = new SystemDiagnostics((p, s) => { }, null);
            var plan = CreateNewDistributionPlan(
                new DatasetActivationProposal(),
                CreateOfflineInfo(new Mock <IPersistenceInformation>().Object),
                systemDiagnostics);

            var model = new DistributionSuggestion(plan);

            var converter      = new DistributionSuggestionToTextConverter();
            var convertedValue = converter.Convert(model, null, null, null);

            Assert.AreEqual(plan.MachineToDistributeTo.ToString(), convertedValue);
        }
 public void ConvertWithNullReference()
 {
     var converter = new DistributionSuggestionToTextConverter();
     var convertedValue = converter.Convert(null, null, null, null);
     Assert.AreEqual("Unknown network resource ...", convertedValue);
 }