예제 #1
0
        public ProjectController(PivotalService service, PivotalColumnBuilder columnBuilder)
        {
            Mapper.CreateMap <Project, ProjectViewModel>();
            Mapper.CreateMap <Story, StoryViewModel>().ForMember(s => s.Owner, s => s.MapFrom(st => st.Owner ?? "Available"));

            _service       = service;
            _columnBuilder = columnBuilder;
        }
예제 #2
0
        protected void BuilderReturnsColumns(List <Column> columns)
        {
            _columnBuilder = A.Fake <PivotalColumnBuilder>();

            A.CallTo(() => _columnBuilder.GetColumns()).Returns(columns);
        }
 public override void Given()
 {
     _builder = new PivotalColumnBuilder("label=first label,label=second label,state=Unstarted; state=Finished; state=Rejected; label=another label");
 }