private static string CreatePositionReport(IPositionReportRepository repository, string comment, DateTime dateTime, float latitude, float longitude) { var positionReport = repository.Create(); positionReport.Comment = comment; positionReport.PositionDateTime = dateTime; positionReport.Position = new Position(latitude, longitude); repository.Save(positionReport); repository.SubmitChanges(); return(positionReport.ID); }
protected override void OnSetUpMocks() { base.OnSetUpMocks(); _positionReportRepositoryMock = MockRepository.StrictMock <IPositionReportRepository>(); }
public PositionReportsController(IPositionReportRepository positionReportRepository) { _positionReportRepository = positionReportRepository; }
public LatestPositionsController(IPositionReportRepository positionReportRepository) { _positionReportRepository = positionReportRepository; }
public PositionReportMessageProcessor(IPositionReportRepository positionReportRepository) : base("POSITION REPORT") { _positionReportRepository = positionReportRepository; }