public void DomainReportToReportEntityTest() { //Arrange const string formatedDate = "formatedDate"; var domainReport = new DomainReport() { 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, TaggerIPhoneUploads = 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 }; var mapper = new ReportMapper(_tableValueConverter.Object); //Act var reportEntity = mapper.DomainReportToEntity(domainReport, formatedDate); //Assert Assert.AreEqual(reportEntity.Tick, formatedDate); Assert.AreEqual(domainReport.Interval, reportEntity.Interval); Assert.AreEqual(domainReport.AllRegistrations, reportEntity.AllRegistrations); Assert.AreEqual(domainReport.CicIPadDeletions, reportEntity.CicIPadDeletions); Assert.AreEqual(domainReport.CicIPadRegistrations, reportEntity.CicIPadRegistrations); Assert.AreEqual(domainReport.CicIPadSuccessfulUploads, reportEntity.CicIPadSuccessfulUploads); Assert.AreEqual(domainReport.CicIPadUploadCancels, reportEntity.CicIPadUploadCancels); Assert.AreEqual(domainReport.CicMacDeletions, reportEntity.CicMacDeletions); Assert.AreEqual(domainReport.CicMacRegistrations, reportEntity.CicMacRegistrations); Assert.AreEqual(domainReport.CicMacSuccessfulUploads, reportEntity.CicMacSuccessfulUploads); Assert.AreEqual(domainReport.CicMacUploadCancels, reportEntity.CicMacUploadCancels); Assert.AreEqual(domainReport.CicPcDeletions, reportEntity.CicPcDeletions); Assert.AreEqual(domainReport.CicPcRegistrations, reportEntity.CicPcRegistrations); Assert.AreEqual(domainReport.CicPcSuccessfulUploads, reportEntity.CicPcSuccessfulUploads); Assert.AreEqual(domainReport.CicPcUploadCancels, reportEntity.CicPcUploadCancels); Assert.AreEqual(domainReport.EmailRegistrations, reportEntity.EmailRegistrations); Assert.AreEqual(domainReport.EmbeddedViews, reportEntity.EmbeddedViews); Assert.AreEqual(domainReport.FacebookRegistrations, reportEntity.FacebookRegistrations); Assert.AreEqual(domainReport.GoogleRegistrations, reportEntity.GoogleRegistrations); Assert.AreEqual(domainReport.TaggerIPhoneDeletions, reportEntity.TaggerIPhoneDeletions); Assert.AreEqual(domainReport.TaggerIPhoneRegistrations, reportEntity.TaggerIPhoneRegistrations); Assert.AreEqual(domainReport.TaggerIPhoneUploads, reportEntity.TaggerIPhoneSuccessfulUploads); Assert.AreEqual(domainReport.TaggerIPhoneUploadCancels, reportEntity.TaggerIPhoneUploadCancels); Assert.AreEqual(domainReport.TotalViews, reportEntity.TotalViews); Assert.AreEqual(domainReport.WindowsLiveRegistrations, reportEntity.WindowsLiveRegistrations); Assert.AreEqual(domainReport.YahooRegistrations, reportEntity.YahooRegistrations); Assert.AreEqual(domainReport.ImageShackDeletions, reportEntity.ImageShackDeletions); Assert.AreEqual(domainReport.ImageShackRegistrations, reportEntity.ImageShackRegistrations); Assert.AreEqual(domainReport.ImageShackSuccessfulUploads, reportEntity.ImageShackSuccessfulUploads); Assert.AreEqual(domainReport.ImageShackUploadCancels, reportEntity.ImageShackUploadCancels); Assert.AreEqual(domainReport.TwitterRegistrations, reportEntity.TwitterRegistrations); Assert.AreEqual(domainReport.OdnoklassnikiRegistrations, reportEntity.OdnoklassnikiRegistrations); Assert.AreEqual(domainReport.BrowserRegistrations, reportEntity.BrowserRegistrations); Assert.AreEqual(domainReport.OtherRegistrations, reportEntity.OtherRegistrations); Assert.AreEqual(domainReport.TaggerAndroidDeletions, reportEntity.TaggerAndroidDeletions); Assert.AreEqual(domainReport.TaggerAndroidRegistrations, reportEntity.TaggerAndroidRegistrations); Assert.AreEqual(domainReport.TaggerAndroidSuccessfulUploads, reportEntity.TaggerAndroidSuccessfulUploads); Assert.AreEqual(domainReport.TaggerAndroidUploadCancels, reportEntity.TaggerAndroidUploadCancels); Assert.AreEqual(domainReport.StandaloneDeletions, reportEntity.StandaloneDeletions); Assert.AreEqual(domainReport.StandaloneRegistrations, reportEntity.StandaloneRegistrations); Assert.AreEqual(domainReport.StandaloneSuccessfulUploads, reportEntity.StandaloneSuccessfulUploads); Assert.AreEqual(domainReport.StandaloneUploadCancels, reportEntity.StandaloneUploadCancels); Assert.AreEqual(domainReport.PlayerDeletions, reportEntity.PlayerDeletions); Assert.AreEqual(domainReport.PlayerRegistrations, reportEntity.PlayerRegistrations); Assert.AreEqual(domainReport.PlayerSuccessfulUploads, reportEntity.PlayerSuccessfulUploads); Assert.AreEqual(domainReport.PlayerUploadCancels, reportEntity.PlayerUploadCancels); Assert.AreEqual(domainReport.DailyMotionDeletions, reportEntity.DailyMotionDeletions); Assert.AreEqual(domainReport.DailyMotionRegistrations, reportEntity.DailyMotionRegistrations); Assert.AreEqual(domainReport.DailyMotionSuccessfulUploads, reportEntity.DailyMotionSuccessfulUploads); Assert.AreEqual(domainReport.DailyMotionUploadCancels, reportEntity.DailyMotionUploadCancels); Assert.AreEqual(domainReport.VkRegistrations, reportEntity.VkRegistrations); Assert.AreEqual(domainReport.JwPlayerDeletions, reportEntity.JwPlayerDeletions); Assert.AreEqual(domainReport.JwPlayerRegistrations, reportEntity.JwPlayerRegistrations); Assert.AreEqual(domainReport.JwPlayerSuccessfulUploads, reportEntity.JwPlayerSuccessfulUploads); Assert.AreEqual(domainReport.JwPlayerUploadCancels, reportEntity.JwPlayerUploadCancels); }