public void Given_policy_snapshot_When_restoring_Then_it_succeed() { var snapshot = new PolicyState { Amount = 5, BusinessTime = DateTimeOffset.Now, Duration = TimeSpan.FromDays(1), ExpiryDate = DateTimeOffset.Now.AddDays(10), IsExpired = false, Issued = true, IssueDate = DateTimeOffset.Now }; var policy = new InsurancePolicy(); policy.RestoreFromSnapshot(new SnapshotState <PolicyState> { State = snapshot, Address = new AggregateAddress <InsurancePolicy>(), Id = Guid.NewGuid().ToString(), Version = 100 }); }