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
export const Errors = [ | |
{ | |
code: 'auth/expired-action-code', | |
title: 'Your token is expired', | |
message: 'Your verification token has expired!' | |
}, | |
{ | |
code: 'auth/invalid-action-code', | |
title: 'This action code is invalid', | |
message: |
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
namespace Grader.Service | |
{ | |
public class GradeConverter | |
{ | |
/// <summary> | |
/// This function will take in a positive integer representing a grade percentage | |
/// and return the letter grade corresponding to that percentage. | |
/// </summary> | |
public char GetLetterGrade(int grade) | |
{ |
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
using NUnit.Framework; | |
using Grader.Service; | |
namespace Tests | |
{ | |
public class Tests | |
{ | |
private GradeConverter gc = new GradeConverter(); | |
[TestCase(90)] |
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
namespace Grader.Service | |
{ | |
public class GradeConverter | |
{ | |
/// <summary> | |
/// 90 and above = 'A' | |
/// 80 - 90 = 'B' | |
/// 70 - 80 = 'C' | |
/// 60 - 70 = 'D' | |
/// 60 and below = 'F' |
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
/** | |
* I like Angular, so this is the example I'll give you. It should | |
* still be relatively easy to read | |
*/ | |
import { Injectable } from '@angular/core'; | |
import { AngularFireAuth } from '@angular/fire/auth'; | |
import { switchMap } from 'rxjs/operators'; | |
import { HttpClient } from '@angular/common/http'; |
NewerOlder