-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes; thought I had pushed these fixes 🫠
- Loading branch information
1 parent
960ad6c
commit ca56545
Showing
4 changed files
with
11 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,11 +2,11 @@ | |
using StudentEnrollment01.InMemory.Events; | ||
|
||
var id = Guid.Parse("a662d446-4920-415e-8c2a-0dd4a6c58908"); | ||
var now = DateTime.Now; | ||
var now = DateTime.Now.ToUniversalTime(); | ||
|
||
var studentCreated = new StudentCreated | ||
{ | ||
CreatedAtUtc = now.ToUniversalTime(), | ||
CreatedAtUtc = now, | ||
StudentId = id, | ||
FullName = "Erik Shafer", | ||
Email = "[email protected]", | ||
|
@@ -19,6 +19,9 @@ | |
var student = inMemoryDb.GetStudent(id); | ||
|
||
Console.WriteLine( | ||
"StudentId: {0} | FullName: {1} | Email: {2} | DateOfBirth: {3} | CreatedAtUtc: {4}", | ||
"StudentId: {0}\nFullName: {1}\nEmail: {2}\nDateOfBirth: {3}\nCreatedAtUtc: {4}", | ||
student!.Id, student.FullName, student.Email, student.DateOfBirth, student.CreatedAtUtc); | ||
Console.WriteLine("Enrolled courses:"); | ||
foreach (var enrolledCourse in student.EnrolledCourses) | ||
Console.WriteLine($"\t- {enrolledCourse}"); | ||
Console.WriteLine(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters