internal NumberSeries(INumberSeries model)
     : this(model.Identifier, model.Name)
 {
     return;
 }
Beispiel #2
0
 /// <summary>
 /// Converts the specified model to a messaging model.
 /// </summary>
 /// <param name="target">
 /// The current <see cref="INumberSeries" />.
 /// </param>
 /// <returns>
 /// The converted object.
 /// </returns>
 public static NumberSeries ToPrototypeDatabaseEntity(this INumberSeries target) => new NumberSeries(target);
 /// <summary>
 /// Converts the specified model to a domain model.
 /// </summary>
 /// <param name="target">
 /// The current <see cref="INumberSeries" />.
 /// </param>
 /// <returns>
 /// The converted object.
 /// </returns>
 public static NumberSeries ToDomainModel(this INumberSeries target) => new NumberSeries(target);
 public void Setup()
 {
     _seriesService       = new FibonacciService();
     _fibonacciController = new FibonacciController(_seriesService);
 }
Beispiel #5
0
 public FibonacciController(INumberSeries numberSeries)
 {
     _numberService = numberSeries;
 }
Beispiel #6
0
 public void Setup()
 {
     _seriesService = new FibonacciService();
 }
Beispiel #7
0
 /// <summary>
 /// Converts the specified model to a messaging model.
 /// </summary>
 /// <param name="target">
 /// The current <see cref="INumberSeries" />.
 /// </param>
 /// <returns>
 /// The converted object.
 /// </returns>
 public static NumberSeries ToMessagingModel(this INumberSeries target) => new NumberSeries(target);