Ejemplo n.º 1
0
        private void when_build_a_snapshot()
        {
            before = () =>
            {
                _expectedEnvironmentId   = "EnvId01";
                _expectedEnvironmentName = "EnvName01";
                _expectedSteps           = new List <SnapshotStep>();
                A.CallTo(() => _steps.Build()).Returns(_expectedSteps);
                A.CallTo(() => _environment.Id).Returns(_expectedEnvironmentId);
                A.CallTo(() => _environment.Name).Returns(_expectedEnvironmentName);
            };

            act = () => { _actualSnapshot = _builder.Build(); };

            it["should return a snapshot"] = () => { _actualSnapshot.should_not_be_null(); };

            it["should return expected environment id"] =
                () => { _actualSnapshot.EnvironmentId.should_be(_expectedEnvironmentId); };

            it["should return expected environment name"] =
                () => { _actualSnapshot.EnvironmentName.should_be(_expectedEnvironmentName); };

            it["should return expected steps"] = () => { _actualSnapshot.Steps.should_be(_expectedSteps); };
        }
Ejemplo n.º 2
0
        public void Run()
        {
            var release = _builder.Build();

            _writer.Write(release);
        }