public void ReportEntityToDomainTest() { //Arrange var dateTime = new DateTime(664245234232223465); var reportEntity = new StandardReportV3Entity() { Tick = "35467568756658785", Interval = "interval", AllRegistrations = 12, CicIPadDeletions = 23, CicIPadRegistrations = 34, CicIPadSuccessfulUploads = 45, CicIPadUploadCancels = 445, CicMacDeletions = 56, CicMacRegistrations = 67, CicMacSuccessfulUploads = 78, CicMacUploadCancels = 778, CicPcDeletions = 89, CicPcRegistrations = 90, CicPcSuccessfulUploads = 123, CicPcUploadCancels = 1123, EmailRegistrations = 234, EmbeddedViews = 345, FacebookRegistrations = 456, GoogleRegistrations = 567, TaggerIPhoneDeletions = 678, TaggerIPhoneRegistrations = 789, TaggerIPhoneSuccessfulUploads = 890, TaggerIPhoneUploadCancels = 990, TotalViews = 901, WindowsLiveRegistrations = 1234, YahooRegistrations = 2345, ImageShackDeletions = 11, ImageShackRegistrations = 22, ImageShackSuccessfulUploads = 33, ImageShackUploadCancels = 44, TwitterRegistrations = 111, BrowserRegistrations = 112, OtherRegistrations = 113, PlayerDeletions = 114, PlayerRegistrations = 115, PlayerSuccessfulUploads = 116, PlayerUploadCancels = 117, StandaloneDeletions = 118, StandaloneRegistrations = 119, StandaloneSuccessfulUploads = 221, StandaloneUploadCancels = 223, TaggerAndroidDeletions = 224, TaggerAndroidRegistrations = 225, TaggerAndroidSuccessfulUploads = 226, TaggerAndroidUploadCancels = 227, DailyMotionDeletions = 228, DailyMotionRegistrations = 229, DailyMotionSuccessfulUploads = 331, DailyMotionUploadCancels = 332, VkRegistrations = 333, JwPlayerDeletions = 334, JwPlayerRegistrations = 335, JwPlayerSuccessfulUploads = 336, JwPlayerUploadCancels = 337, OdnoklassnikiRegistrations = 448 }; _tableValueConverter.Setup(m => m.TickToDateTime(reportEntity.Tick)).Returns(dateTime); var mapper = new ReportMapper(_tableValueConverter.Object); //Act var domainReport = mapper.ReportEntityToDomain(reportEntity); //Assert Assert.AreEqual(dateTime, domainReport.Tick); Assert.AreEqual(reportEntity.Interval, domainReport.Interval); Assert.AreEqual(reportEntity.AllRegistrations, domainReport.AllRegistrations); Assert.AreEqual(reportEntity.CicIPadDeletions, domainReport.CicIPadDeletions); Assert.AreEqual(reportEntity.CicIPadRegistrations, domainReport.CicIPadRegistrations); Assert.AreEqual(reportEntity.CicIPadSuccessfulUploads, domainReport.CicIPadSuccessfulUploads); Assert.AreEqual(reportEntity.CicIPadUploadCancels, domainReport.CicIPadUploadCancels); Assert.AreEqual(reportEntity.CicMacDeletions, domainReport.CicMacDeletions); Assert.AreEqual(reportEntity.CicMacRegistrations, domainReport.CicMacRegistrations); Assert.AreEqual(reportEntity.CicMacSuccessfulUploads, domainReport.CicMacSuccessfulUploads); Assert.AreEqual(reportEntity.CicMacUploadCancels, domainReport.CicMacUploadCancels); Assert.AreEqual(reportEntity.CicPcDeletions, domainReport.CicPcDeletions); Assert.AreEqual(reportEntity.CicPcRegistrations, domainReport.CicPcRegistrations); Assert.AreEqual(reportEntity.CicPcSuccessfulUploads, domainReport.CicPcSuccessfulUploads); Assert.AreEqual(reportEntity.CicPcUploadCancels, domainReport.CicPcUploadCancels); Assert.AreEqual(reportEntity.EmailRegistrations, domainReport.EmailRegistrations); Assert.AreEqual(reportEntity.EmbeddedViews, domainReport.EmbeddedViews); Assert.AreEqual(reportEntity.FacebookRegistrations, domainReport.FacebookRegistrations); Assert.AreEqual(reportEntity.GoogleRegistrations, domainReport.GoogleRegistrations); Assert.AreEqual(reportEntity.TaggerIPhoneDeletions, domainReport.TaggerIPhoneDeletions); Assert.AreEqual(reportEntity.TaggerIPhoneRegistrations, domainReport.TaggerIPhoneRegistrations); Assert.AreEqual(reportEntity.TaggerIPhoneSuccessfulUploads, domainReport.TaggerIPhoneUploads); Assert.AreEqual(reportEntity.TaggerIPhoneUploadCancels, domainReport.TaggerIPhoneUploadCancels); Assert.AreEqual(reportEntity.TotalViews, domainReport.TotalViews); Assert.AreEqual(reportEntity.WindowsLiveRegistrations, domainReport.WindowsLiveRegistrations); Assert.AreEqual(reportEntity.YahooRegistrations, domainReport.YahooRegistrations); Assert.AreEqual(reportEntity.ImageShackDeletions, domainReport.ImageShackDeletions); Assert.AreEqual(reportEntity.ImageShackRegistrations, domainReport.ImageShackRegistrations); Assert.AreEqual(reportEntity.ImageShackSuccessfulUploads, domainReport.ImageShackSuccessfulUploads); Assert.AreEqual(reportEntity.ImageShackUploadCancels, domainReport.ImageShackUploadCancels); Assert.AreEqual(reportEntity.TwitterRegistrations, domainReport.TwitterRegistrations); Assert.AreEqual(reportEntity.OdnoklassnikiRegistrations, domainReport.OdnoklassnikiRegistrations); Assert.AreEqual(reportEntity.BrowserRegistrations, domainReport.BrowserRegistrations); Assert.AreEqual(reportEntity.OtherRegistrations, domainReport.OtherRegistrations); Assert.AreEqual(reportEntity.TaggerAndroidDeletions, domainReport.TaggerAndroidDeletions); Assert.AreEqual(reportEntity.TaggerAndroidRegistrations, domainReport.TaggerAndroidRegistrations); Assert.AreEqual(reportEntity.TaggerAndroidSuccessfulUploads, domainReport.TaggerAndroidSuccessfulUploads); Assert.AreEqual(reportEntity.TaggerAndroidUploadCancels, domainReport.TaggerAndroidUploadCancels); Assert.AreEqual(reportEntity.StandaloneDeletions, domainReport.StandaloneDeletions); Assert.AreEqual(reportEntity.StandaloneRegistrations, domainReport.StandaloneRegistrations); Assert.AreEqual(reportEntity.StandaloneSuccessfulUploads, domainReport.StandaloneSuccessfulUploads); Assert.AreEqual(reportEntity.StandaloneUploadCancels, domainReport.StandaloneUploadCancels); Assert.AreEqual(reportEntity.PlayerDeletions, domainReport.PlayerDeletions); Assert.AreEqual(reportEntity.PlayerRegistrations, domainReport.PlayerRegistrations); Assert.AreEqual(reportEntity.PlayerSuccessfulUploads, domainReport.PlayerSuccessfulUploads); Assert.AreEqual(reportEntity.PlayerUploadCancels, domainReport.PlayerUploadCancels); Assert.AreEqual(reportEntity.DailyMotionDeletions, domainReport.DailyMotionDeletions); Assert.AreEqual(reportEntity.DailyMotionRegistrations, domainReport.DailyMotionRegistrations); Assert.AreEqual(reportEntity.DailyMotionSuccessfulUploads, domainReport.DailyMotionSuccessfulUploads); Assert.AreEqual(reportEntity.DailyMotionUploadCancels, domainReport.DailyMotionUploadCancels); Assert.AreEqual(reportEntity.VkRegistrations, domainReport.VkRegistrations); Assert.AreEqual(reportEntity.JwPlayerDeletions, domainReport.JwPlayerDeletions); Assert.AreEqual(reportEntity.JwPlayerRegistrations, domainReport.JwPlayerRegistrations); Assert.AreEqual(reportEntity.JwPlayerSuccessfulUploads, domainReport.JwPlayerSuccessfulUploads); Assert.AreEqual(reportEntity.JwPlayerUploadCancels, domainReport.JwPlayerUploadCancels); }