public void SetUp()
 {
     painterFactory = A.Fake <IPainterFactory>();
     painter        = A.Fake <ICloudPainter>();
     A.CallTo(() => painterFactory.Create()).Returns(Result.Ok(painter));
 }
示例#2
0
 public ValuesController(ICloudPainter cloudPainter)
 {
     _cloudPainter = cloudPainter;
 }